Home
last modified time | relevance | path

Searched refs:col1 (Results 1 – 25 of 25) sorted by relevance

/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_bind_param_type_juggling.phpt57 if (!$res = mysqli_query($link, "SELECT col1, col2 FROM test")) {
67 if (($row['col1'] != $bind_value1) || ($row['col2'] != $bind_value1)) {
68 … printf("[%03d + 11] Expecting col1 = %s, col2 = %s got col1 = %s, col2 = %s - [%d] %s\n",
70 $row['col1'], $row['col2'],
76 if (($row['col1'] != $bind_value1) || ($row['col2'] != $bind_value2)) {
77 … printf("[%03d + 12] Expecting col1 = %s, col2 = %s got col1 = %s, col2 = %s - [%d] %s\n",
79 $row['col1'], $row['col2'],
101 1) col1 INT, col2 CHAR(1)
107 col1 INT, col2 INT
110 col1 CHAR(1), col2 CHAR(2)
[all …]
H A Dbug42378.phpt25 $sql = sprintf("CREATE TABLE test(id INT AUTO_INCREMENT PRIMARY KEY, col1 %s) ENGINE=%s",
36 $col1 = mt_rand($min, $max);
37 $values[$i] = $col1;
38 $sql = sprintf("INSERT INTO test(id, col1) VALUES (%d, %f)",
39 $i, $col1);
163 test_format($link, 'FORMAT(col1, 0)', 'test', NULL, array(), 100);
168 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120);
189 FORMAT(col1, 0)
191 id AS order_by_col, FORMAT(col1, 0)
193 id AS order_by_col, FORMAT(col1, 0)
[all …]
H A Dmysqli_stmt_datatype_change.phpt29 var_dump($s1->execute(), $s1->bind_result($col1));
32 var_dump($col1);
35 var_dump($col1);
47 var_dump($col1);
50 var_dump($col1);
H A Dmysqli_stmt_bind_result_format.phpt24 $sql = sprintf("CREATE TABLE test(id INT AUTO_INCREMENT PRIMARY KEY, col1 %s) ENGINE=%s",
35 $col1 = mt_rand($min, $max);
36 $values[$i] = $col1;
37 $sql = sprintf("INSERT INTO test(id, col1) VALUES (%d, %f)",
38 $i, $col1);
168 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 100);
173 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120);
178 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 140);
183 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 160);
188 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 180);
[all …]
H A D048.phpt19 $mysql->query("CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint,
27 …$mysql->query("INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(2,'foo2', 88…
29 …$stmt = $mysql->prepare("SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11…
H A Dbug32405.phpt25 $stmt->bind_result($col1, $col2);
27 var_dump($col1, $col2);
H A Dmysqli_fetch_field_flags.phpt113 $create = sprintf('CREATE TABLE test(id INT, col1 %s)', $column_def);
131 if ($field->name != 'col1') {
187 $column_def = array('col1 CHAR(1)', 'col2 CHAR(2)','INDEX idx_col1_col2(col1, col2)');
188 $expected_flags = array('col1' => 'MULTIPLE_KEY PART_KEY', 'col2' => 'PART_KEY');
/php-src/ext/sqlite3/tests/
H A Dbug68760.phpt13 $db->exec("CREATE TABLE test (col1 string)");
20 $naturalSort = $db->query("SELECT col1 FROM test ORDER BY col1 COLLATE NATURAL_CMP");
22 echo $row['col1'], "\n";
/php-src/ext/pdo/tests/
H A Dpdo_016.phpt65 $stmt3->bindColumn('txt', $col1);
78 var_dump(array($col2=>$col1));
83 $stmt4->bindColumn('idx', $col1);
91 var_dump($col1);
95 var_dump($col1);
100 $stmt2->bindColumn('idx', $col1);
101 $stmt2->bindColumn('txt', $col1);
106 var_dump($col1);
H A Dpdo_016a.phpt65 $stmt3->bindColumn('txt', $col1);
78 var_dump(array($col2=>$col1));
83 $stmt4->bindColumn('idx', $col1);
91 var_dump($col1);
95 var_dump($col1);
100 $stmt2->bindColumn('idx', $col1);
101 $stmt2->bindColumn('txt', $col1);
106 var_dump($col1);
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_last_insert_id.phpt27 …$db->exec(sprintf('CREATE TABLE test_pdo_mysql_last_insert_id(id INT, col1 CHAR(10)) ENGINE=%s', P…
36 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(id, col1) VALUES (100, 'a')");
45 @$db->exec("INSERT INTO test_pdo_mysql_last_insert_id(id, col1) VALUES (100, 'a')");
49 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(id, col1) VALUES (101, 'b')");
53 $db->exec('ALTER TABLE test_pdo_mysql_last_insert_id MODIFY col1 CHAR(10) UNIQUE');
55 $db->exec("REPLACE INTO test_pdo_mysql_last_insert_id(col1) VALUES ('b')");
69 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(col1) VALUES ('c'), ('d'), ('e')");
93 $db->exec("INSERT INTO test_pdo_mysql_last_insert_id(col1) VALUES ('z')");
H A Dpdo_mysql_local_infile_directory_allowed.phpt41 …'CREATE TABLE test_local_inifile_dir_allowed(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s…
47 $stmt = $db->query('SELECT id, col1 FROM test_local_inifile_dir_allowed ORDER BY id ASC');
49 array("id" => 97, "col1" => "first"),
50 array("id" => 98, "col1" => "second"),
51 array("id" => 99, "col1" => "third"),
H A Dpdo_mysql_local_infile_overrides_local_infile_directory.phpt41 …f('CREATE TABLE test_local_inifile_overrides(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s…
47 $stmt = $db->query('SELECT id, col1 FROM test_local_inifile_overrides ORDER BY id ASC');
49 array("id" => 1, "col1" => "one"),
50 array("id" => 2, "col1" => "two"),
51 array("id" => 3, "col1" => "three"),
H A Dpdo_mysql_exec_select.phpt37 …sprintf('CREATE TABLE test_mysql_exec_select(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s…
38 exec_and_count(4, $db, "INSERT INTO test_mysql_exec_select(id, col1) VALUES (1, 'a')", 1);
43 exec_and_count(6, $db, "INSERT INTO test_mysql_exec_select(id, col1) VALUES (2, 'b')", 1);
61 …teger got ''/boolean when running 'INSERT INTO test_mysql_exec_select(id, col1) VALUES (2, 'b')', …
H A Dpdo_mysql_exec.phpt38 …, $db, sprintf('CREATE TABLE test_mysql_exec(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s…
39 exec_and_count(4, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (1, 'a')", 1);
40 … exec_and_count(5, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (2, 'b'), (3, 'c')", 2);
42 …exec_and_count(7, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (1, 'd') ON DUPLICATE KEY UPD…
44 …exec_and_count(9, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (5, 'e') ON DUPLICATE KEY UPD…
45 exec_and_count(10, $db, "REPLACE INTO test_mysql_exec(id, col1) VALUES (5, 'f')", 2);
46 exec_and_count(11, $db, "REPLACE INTO test_mysql_exec(id, col1) VALUES (6, 'g')", 1);
54 …, $db, sprintf('CREATE TABLE test_mysql_exec(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s…
55 exec_and_count(37, $db, "INSERT INTO test_mysql_exec(id, col1) VALUES (1, 'a')", 1);
H A Dpdo_mysql_exec_load_data.phpt62 …intf('CREATE TABLE test_mysql_exec_load_data(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s…
79 $stmt = $db->query('SELECT id, col1 FROM test_mysql_exec_load_data ORDER BY id ASC');
80 $expected = array(array("id" => 1, "col1" => "foo"), array("id" => 2, "col1" => "bar"));
H A Dpdo_mysql_local_infile_directory_denied.phpt41 …('CREATE TABLE test_local_inifile_dir_denied(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGINE=%s…
47 $stmt = $db->query('SELECT id, col1 FROM test_local_inifile_dir_denied ORDER BY id ASC');
H A Dpdo_mysql_exec_ddl.phpt49 if (0 === $db->exec("CREATE TABLE {$table} (id INT, col1 CHAR(2))")) {
H A Dpdo_mysql_stmt_getcolumnmeta.phpt285 $stmt = $db->query('SELECT NULL AS col1');
/php-src/ext/mysqli/tests/bind_fetch/
H A Dvaried_data_types.phpt19 col1 tinyint, col2 smallint,
33 …are($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11, col12 from …
/php-src/ext/gd/libgd/
H A Dgd_crop.c29 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold);
295 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) in gdColorMatch() argument
297 const int dr = gdImageRed(im, col1) - gdImageRed(im, col2); in gdColorMatch()
298 const int dg = gdImageGreen(im, col1) - gdImageGreen(im, col2); in gdColorMatch()
299 const int db = gdImageBlue(im, col1) - gdImageBlue(im, col2); in gdColorMatch()
300 const int da = gdImageAlpha(im, col1) - gdImageAlpha(im, col2); in gdColorMatch()
313 static int colors_equal (const int col1, const in col2)
/php-src/ext/gd/tests/
H A Dimagepolygon_basic.phpt39 $col1 = imagecolorat($image, 100, 200);
41 $color1 = imagecolorsforindex($image, $col1);
H A Dimagedashedline_basic.phpt36 $col1 = imagecolorat($image, 100, 230);
40 $color1 = imagecolorsforindex($image, $col1);
H A Dimagefilledpolygon_basic.phpt47 $col1 = imagecolorat($image_in, 40, 50);
53 $color1 = imagecolorsforindex($image_in, $col1);
/php-src/ext/mysqli/tests/bind_insert/
H A Dvaried_data_types.phpt19 col1 tinyint, col2 smallint,
29 …$stmt = mysqli_prepare($link, "INSERT INTO insert_bind_varied1(col1,col10, col11, col6) VALUES (?,…

Completed in 34 milliseconds