Home
last modified time | relevance | path

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

12

/PHP-5.5/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);
164 test_format($link, 'FORMAT(col1, 0)', 'test', NULL, array(), 100);
169 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120);
190 FORMAT(col1, 0)
192 id AS order_by_col, FORMAT(col1, 0)
194 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 D002.phpt19 $rc = mysqli_query($link,"CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint,
30 …$rc = mysqli_query($link, "INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(…
34 …li_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11 from …
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);
166 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 100);
171 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120);
176 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 140);
181 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 160);
186 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 180);
[all …]
H A D048.phpt18 $mysql->query("CREATE TABLE test_fetch_null(col1 tinyint, col2 smallint,
26 …$mysql->query("INSERT INTO test_fetch_null(col1,col10, col11) VALUES(1,'foo1', 1000),(2,'foo2', 88…
28 …$stmt = $mysql->prepare("SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11…
H A D019.phpt18 $rc = mysqli_query($link,"CREATE TABLE insert_read(col1 tinyint, col2 smallint,
28 …if (!$stmt = mysqli_prepare($link, "INSERT INTO insert_read(col1,col10, col11, col6) VALUES (?,?,?…
41 …if (!$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, c…
H A Dbug32405.phpt24 $stmt->bind_result($col1, $col2);
26 var_dump($col1, $col2);
H A Dmysqli_fetch_field_flags.phpt120 $create = sprintf('CREATE TABLE test(id INT, col1 %s)', $column_def);
138 if ($field->name != 'col1') {
204 $column_def = array('col1 CHAR(1)', 'col2 CHAR(2)','INDEX idx_col1_col2(col1, col2)');
205 $expected_flags = array('col1' => 'MULTIPLE_KEY PART_KEY', 'col2' => 'PART_KEY');
/PHP-5.5/ext/mysql/tests/
H A D002.phpt20 var_dump(mysql_query('CREATE TABLE test(col1 int PRIMARY KEY, col2 varchar(50), col3 char(5))'));
22 var_dump(mysql_query("INSERT INTO test(col1, col2, col3) VALUES(1, 'foo', 'bar'),(2, 'foo', 'bar')"…
24 var_dump($res = mysql_query('SELECT col1, col2, col3 FROM test ORDER BY col1 ASC'));
47 [%u|b%"col1"]=>
55 [%u|b%"col1"]=>
/PHP-5.5/ext/pdo_oci/tests/
H A Dpdo_oci_attr_autocommit_2.phpt19 $dbh->exec("create table pdo_ac_tab (col1 varchar2(25))");
25 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 1')");
26 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 2')");
39 $dbh->exec("insert into pdo_ac_tab (col1) values ('not committed #1')");
40 $dbh->exec("insert into pdo_ac_tab (col1) values ('data that is too long to fit and will barf')");
51 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 3')");
66 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 4')");
83 $dbh->exec("insert into pdo_ac_tab (col1) values ('not committed #2')");
85 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 5')");
86 $dbh->exec("insert into pdo_ac_tab (col1) values ('data 6')");
[all …]
H A Dpdo_oci_attr_autocommit_3.phpt28 $dbh->exec("create table pdo_ac_tab (col1 varchar2(20))");
30 $dbh->exec("insert into pdo_ac_tab (col1) values ('some data')");
36 $s = $dbh2->prepare("select col1 from pdo_ac_tab");
H A Dpdo_oci_attr_autocommit_1.phpt40 $dbh->exec("create table pdo_ac_tab (col1 varchar2(20))");
41 $dbh->exec("insert into pdo_ac_tab (col1) values ('some data')");
46 $s = $dbh2->prepare("select col1 from pdo_ac_tab");
/PHP-5.5/ext/sqlite3/tests/
H A Dbug68760.phpt15 $db->exec("CREATE TABLE test (col1 string)");
22 $naturalSort = $db->query("SELECT col1 FROM test ORDER BY col1 COLLATE NATURAL_CMP");
24 echo $row['col1'], "\n";
/PHP-5.5/ext/pdo/tests/
H A Dpdo_016.phpt64 $stmt3->bindColumn('txt', $col1);
77 var_dump(array($col2=>$col1));
82 $stmt4->bindColumn('idx', $col1);
90 var_dump($col1);
94 var_dump($col1);
99 $stmt2->bindColumn('idx', $col1);
100 $stmt2->bindColumn('txt', $col1);
105 var_dump($col1);
H A Dpdo_016a.phpt64 $stmt3->bindColumn('txt', $col1);
77 var_dump(array($col2=>$col1));
82 $stmt4->bindColumn('idx', $col1);
90 var_dump($col1);
94 var_dump($col1);
99 $stmt2->bindColumn('idx', $col1);
100 $stmt2->bindColumn('txt', $col1);
105 var_dump($col1);
/PHP-5.5/ext/pdo_mysql/tests/
H A Dpdo_mysql_last_insert_id.phpt28 $db->exec(sprintf('CREATE TABLE test(id INT, col1 CHAR(10)) ENGINE=%s', PDO_MYSQL_TEST_ENGINE));
37 $db->exec("INSERT INTO test(id, col1) VALUES (100, 'a')");
46 @$db->exec("INSERT INTO test(id, col1) VALUES (100, 'a')");
50 $db->exec("INSERT INTO test(id, col1) VALUES (101, 'b')");
54 $db->exec('ALTER TABLE test MODIFY col1 CHAR(10) UNIQUE');
56 $db->exec("REPLACE INTO test(col1) VALUES ('b')");
70 $db->exec("INSERT INTO test(col1) VALUES ('c'), ('d'), ('e')");
94 $db->exec("INSERT INTO test(col1) VALUES ('z')");
H A Dpdo_mysql_exec_select.phpt40 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI…
41 exec_and_count(4, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1);
46 exec_and_count(6, $db, "INSERT INTO test(id, col1) VALUES (2, 'b')", 1);
64 [006] Expecting '1'/integer got ''/boolean when running 'INSERT INTO test(id, col1) VALUES (2, 'b')…
H A Dpdo_mysql_exec.phpt40 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI…
41 exec_and_count(4, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1);
42 exec_and_count(5, $db, "INSERT INTO test(id, col1) VALUES (2, 'b'), (3, 'c')", 2);
44 …exec_and_count(7, $db, "INSERT INTO test(id, col1) VALUES (1, 'd') ON DUPLICATE KEY UPDATE id = 3"…
46 …exec_and_count(9, $db, "INSERT INTO test(id, col1) VALUES (5, 'e') ON DUPLICATE KEY UPDATE id = 6"…
47 exec_and_count(10, $db, "REPLACE INTO test(id, col1) VALUES (5, 'f')", 2);
48 exec_and_count(11, $db, "REPLACE INTO test(id, col1) VALUES (6, 'g')", 1);
56 …exec_and_count(36, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENG…
57 exec_and_count(37, $db, "INSERT INTO test(id, col1) VALUES (1, 'a')", 1);
H A Dpdo_mysql_exec_load_data.phpt59 …exec_and_count(3, $db, sprintf('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, col1 CHAR(10)) ENGI…
77 $stmt = $db->query('SELECT id, col1 FROM test ORDER BY id ASC');
78 $expected = array(array("id" => 1, "col1" => "foo"), array("id" => 2, "col1" => "bar"));
/PHP-5.5/ext/gd/libgd/
H A Dgd_crop.c28 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold);
344 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) in gdColorMatch() argument
346 const int dr = gdImageRed(im, col1) - gdImageRed(im, col2); in gdColorMatch()
347 const int dg = gdImageGreen(im, col1) - gdImageGreen(im, col2); in gdColorMatch()
348 const int db = gdImageBlue(im, col1) - gdImageBlue(im, col2); in gdColorMatch()
349 const int da = gdImageAlpha(im, col1) - gdImageAlpha(im, col2); in gdColorMatch()
363 static int colors_equal (const int col1, const in col2)
/PHP-5.5/ext/gd/tests/
H A Dimagepolygon_basic.phpt43 $col1 = imagecolorat($image, 100, 200);
45 $color1 = imagecolorsforindex($image, $col1);
H A Dimagedashedline_basic.phpt40 $col1 = imagecolorat($image, 100, 230);
44 $color1 = imagecolorsforindex($image, $col1);
H A Dimagefilledpolygon_basic.phpt49 $col1 = imagecolorat($image_in, 40, 50);
55 $color1 = imagecolorsforindex($image_in, $col1);
/PHP-5.5/ext/oci8/tests/
H A Dstatement_type.phpt18 "ALTER TABLE table ADD (col1 NUMBER)",

Completed in 35 milliseconds

12