/PHP-8.2/ext/mysqli/tests/ |
H A D | gh9841.phpt | 19 SELECT 1 AS val 21 SELECT 2 25 SELECT 1 AS val 27 SELECT 2 32 SELECT 1 AS val 34 SELECT 2 45 SELECT 2 52 SELECT 1 AS val 54 SELECT 2 63 SELECT 1 AS val [all …]
|
H A D | mysqli_ps_select_union.phpt | 2 Prepared Statements and SELECT UNION 16 …if (!($res = $link->query("SELECT CAST('one' AS CHAR) AS column1 UNION SELECT CAST('three' AS CHAR… 27 …if (!($stmt = $link->prepare("SELECT CAST('one' AS CHAR) AS column1 UNION SELECT CAST('three' AS C… 71 …if (!($res = $link->query("SELECT 1 AS column1 UNION SELECT CAST('three' AS CHAR) UNION SELECT CAS… 81 …if (!($stmt = $link->prepare("SELECT 1 AS column1 UNION SELECT CAST('three' AS CHAR) UNION SELECT … 100 …if (!($stmt = $link->prepare("SELECT 1 AS column1 UNION SELECT CAST('three' AS CHAR) UNION SELECT … 118 if (!($res = $link->query("SELECT 1 AS column1 UNION SELECT 303 UNION SELECT 2"))) 128 if (!($stmt = $link->prepare("SELECT 1 AS column1 UNION SELECT 303 UNION SELECT 2"))) 147 if (!($stmt = $link->prepare("SELECT 1 AS column1 UNION SELECT 303 UNION SELECT 2"))) 167 if (!($stmt = $link->prepare("SELECT 'one' AS column1 UNION SELECT ? UNION SELECT ?"))) [all …]
|
H A D | mysqli_fetch_column.phpt | 16 $res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id LIMIT 1"); 27 $res = mysqli_query($link, "SELECT 34 $res = mysqli_query($link, "SELECT 41 $res = mysqli_query($link, "SELECT 49 $res = mysqli_query($link, "SELECT 58 $res = mysqli_query($link, "SELECT 68 $res = mysqli_query($link, "SELECT 74 $res = mysqli_query($link, "SELECT 80 $res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id LIMIT 1"); 88 $res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id LIMIT 1"); [all …]
|
H A D | mysqli_next_result.phpt | 18 $res = mysqli_query($link, "SELECT 1 AS res"); 44 if (!($res = mysqli_query($link, "SELECT 1 AS b"))) { 52 …func_test_mysqli_next_result($link, "SELECT 1 AS a; SELECT 1 AS a, 2 AS b; SELECT id FROM test ORD… 53 …func_test_mysqli_next_result($link, "SELECT 1 AS a; INSERT INTO test(id, label) VALUES (100, 'y');… 54 func_test_mysqli_next_result($link, "DELETE FROM test WHERE id >= 100; SELECT 1 AS a; ", 11, 1);
|
H A D | bug45019.phpt | 2 Bug #45019 (Segmentation fault with SELECT ? and UNION) 16 …if (!($res = $link->query("SELECT CAST('one' AS CHAR) AS column1 UNION SELECT CAST('three' AS CHAR… 27 …if (!($stmt = $link->prepare("SELECT CAST('one' AS CHAR) AS column1 UNION SELECT CAST('three' AS C…
|
H A D | mysqli_pconn_reuse.phpt | 33 if (!$res = mysqli_query($link1, 'SELECT @pcondisabled AS _test')) 37 printf("Connection 1 - SELECT @pcondisabled -> '%s'\n", $row['_test']); 40 if (!$res = mysqli_query($link2, 'SELECT @pcondisabled AS _test')) 53 if (!$res = mysqli_query($link2, 'SELECT @pcondisabled AS _test')) 57 printf("Connection 2 - SELECT @pcondisabled -> '%s'\n", $row['_test']); 68 if (!$res = mysqli_query($link2, 'SELECT @pcondisabled AS _test')) 72 printf("Connection 2 (reuse) - SELECT @pcondisabled -> '%s'\n", $row['_test']); 85 Connection 1 - SELECT @pcondisabled -> 'Connection 1' 86 Connection 2 (no reuse) - SELECT @pcondisabled -> '' 88 Connection 2 - SELECT @pcondisabled -> 'Connection 2' [all …]
|
H A D | mysqli_fetch_array_many_rows.phpt | 23 if (!$res = mysqli_query($link, 'SELECT id, label FROM test')) { 24 printf("[002] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 33 if (!$res = mysqli_query($link, 'SELECT id, label FROM test')) { 34 printf("[003] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 73 if (!$res = mysqli_query($link, 'SELECT id, label FROM test')) { 74 printf("[008] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 83 if (!$res = mysqli_query($link, 'SELECT count(*) AS num FROM test')) { 84 printf("[009] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link)); 90 if (!$res = mysqli_query($link, 'SELECT id, label FROM test')) { 91 printf("[010] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link));
|
H A D | mysqli_fetch_assoc_no_alias.phpt | 13 if (!$res = mysqli_query($link, "SELECT 1, 2")) { 20 if (!$res = mysqli_query($link, "SELECT 1 AS a, 2")) { 27 if (!$res = mysqli_query($link, "SELECT 1 AS a, 2, 2 as '2'")) { 34 if (!$res = mysqli_query($link, "SELECT 1 AS a, 2 as '2', 2")) { 42 if (!$res = mysqli_real_query($link, "SELECT 1, 2")) { 52 if (!$res = mysqli_real_query($link, "SELECT 1 AS a, 2")) { 62 if (!$res = mysqli_real_query($link, "SELECT 1 AS a, 2, 2 as '2'")) { 72 if (!$res = mysqli_real_query($link, "SELECT 1 AS a, 2 as '2', 2")) {
|
H A D | 057.phpt | 23 $stmt = mysqli_prepare($link, "SELECT * FROM test_store_result"); 27 if ($result = mysqli_query($link, "SELECT * FROM test_store_result")) { 34 $stmt = mysqli_prepare($link, "SELECT * FROM test_store_result"); 38 var_dump($stmt = mysqli_prepare($link, "SELECT * FROM test_store_result")); 43 … var_dump($stmt = @mysqli_prepare($link, "SELECT * FROM test_store_result"), mysqli_error($link)); 45 $stmt = mysqli_prepare($link, "SELECT * FROM test_store_result"); 53 if ($result = mysqli_query($link, "SELECT * FROM test_store_result")) {
|
H A D | mysqli_more_results.phpt | 18 …if (!mysqli_multi_query($link, "SELECT 1 AS a; SELECT 1 AS a, 2 AS b; SELECT id FROM test ORDER BY… 32 …if (!mysqli_multi_query($link, "SELECT 1 AS a; SELECT 1 AS a, 2 AS b; SELECT id FROM test ORDER BY…
|
H A D | mysqli_query.phpt | 24 if (false !== ($tmp = mysqli_query($link, "SELECT 'this is sql but with backslash g'\g"))) 30 if (!$res = mysqli_query($link, "SELECT 'this is sql but with semicolon' AS valid ; ")) 36 if (!$res = mysqli_query($link, "SELECT 'a' AS ''")) 43 …if (false !== ($res = mysqli_query($link, 'SELECT "this is sql but with semicolon" AS valid ; SHOW… 49 …if (mysqli_query($link, 'CREATE PROCEDURE p(OUT ver_param VARCHAR(25)) BEGIN SELECT VERSION() INTO… 51 $res = mysqli_query($link, 'SELECT @version AS p_version'); 66 $res = mysqli_query($link, 'SELECT f(VERSION()) AS f_version'); 80 … if (!is_object($res = mysqli_query($link, "SELECT id FROM test ORDER BY id", MYSQLI_USE_RESULT))) 84 …if (!is_object($res = mysqli_query($link, "SELECT id FROM test ORDER BY id", MYSQLI_STORE_RESULT))) 89 mysqli_query($link, "SELECT id FROM test ORDER BY id", 1234); [all …]
|
H A D | bug31668.phpt | 14 $mysql->multi_query('SELECT 1;SELECT 2'); 28 $mysql->multi_query('SELECT 1;SELECT 2');
|
/PHP-8.2/ext/pdo_mysql/tests/ |
H A D | bug41125.phpt | 28 "SELECT 1 FROM DUAL WHERE 1 = '?\'\''", 29 "SELECT 'a\\'0' FROM DUAL WHERE 1 = ?", 31 "SELECT 'foo?bar', '', '''' FROM DUAL WHERE ?" 44 $sql = "SELECT upper(:id) FROM DUAL WHERE '1'"; 63 "SELECT UPPER(:id) FROM DUAL WHERE '1'", 64 "SELECT 1 FROM DUAL WHERE '\''", 67 "SELECT 1 FROM DUAL WHERE '\'' = ''''", 93 [1] Query: [[SELECT 1 FROM DUAL WHERE 1 = '?\'\'']] 97 [2] Query: [[SELECT 'a\'0' FROM DUAL WHERE 1 = ?]] 109 Query: [[SELECT upper(:id) FROM DUAL WHERE '1']] [all …]
|
H A D | pdo_mysql_prepare_emulated.phpt | 99 // lets be fair and do the most simple SELECT first 100 $stmt = prepex(4, $db, 'SELECT 1 as "one"'); 106 $stmt = prepex(8, $db, 'SELECT label FROM test'); 112 $stmt = prepex(11, $db, 'SELECT label FROM test'); 120 $stmt = prepex(15, $db, 'SELECT label FROM test'); 199 …$sql = "SELECT id, label FROM test WHERE id = :placeholder AND label = (SELECT label AS 'SELECT' F… 208 $stmt = prepex(48, $db, 'SELECT label FROM test'); 230 prepex(58, $db, 'SELECT ? FROM test WHERE ? > ?', 233 prepex(59, $db, 'SELECT ? FROM test WHERE ? > ?', 308 …$sql = "SELECT id, label FROM test WHERE id = ? AND label = (SELECT label AS 'SELECT' FROM test WH… [all …]
|
H A D | bug44327.phpt | 17 $stmt = $db->prepare("SELECT 1 AS \"one\""); 30 $stmt = $db->prepare("SELECT id FROM test"); 48 string(17) "SELECT 1 AS "one"" 54 string(17) "SELECT 1 AS "one"" 58 string(19) "SELECT id FROM test" 62 string(19) "SELECT id FROM test"
|
H A D | bug_44454.phpt | 26 $stmt = $db->query('SELECT a, b FROM test'); 27 printf("... SELECT has returned %d row...\n", $stmt->rowCount()); 46 $stmt = $db->query('SELECT a, b FROM test'); 47 printf("... SELECT has returned %d row...\n", $stmt->rowCount()); 80 ... SELECT has returned 1 row... 88 ... SELECT has returned 1 row... 98 ... SELECT has returned 1 row... 106 ... SELECT has returned 1 row...
|
/PHP-8.2/ext/pdo_firebird/tests/ |
H A D | gh10908.phpt | 41 query_and_dump($dbh, "SELECT CODE FROM gh10908"); // works fine 42 query_and_dump($dbh, "SELECT ID FROM gh10908"); // Used to "bus error" 43 query_and_dump($dbh, "SELECT NUM FROM gh10908"); // Used to "bus error" 44 query_and_dump($dbh, "SELECT DBL FROM gh10908"); // Used to "bus error" 45 query_and_dump($dbh, "SELECT TS FROM gh10908"); // Used to "bus error" 46 query_and_dump($dbh, "SELECT MYBLOB FROM gh10908"); // Used to "bus error" 47 query_and_dump($dbh, "SELECT * FROM gh10908"); // Used to "bus error" 49 query_and_dump($dbh, "SELECT CAST(NUM AS NUMERIC(9, 3)) FROM gh10908"); // works fine 50 query_and_dump($dbh, "SELECT CAST(ID AS INTEGER) FROM gh10908"); // works fine 51 query_and_dump($dbh, "SELECT CAST(ID AS BIGINT) FROM gh10908"); // Used to "bus error"
|
/PHP-8.2/ext/pdo_sqlite/tests/ |
H A D | pdo_fetch_func_001.phpt | 15 $st = $db->query('SELECT * FROM testing'); 18 $st = $db->query('SELECT name FROM testing'); 22 $st = $db->query('SELECT * FROM testing'); 29 $st = $db->query('SELECT * FROM testing'); 36 $st = $db->query('SELECT * FROM testing'); 43 $st = $db->query('SELECT * FROM testing'); 50 $st = $db->query('SELECT * FROM testing'); 82 $st = $db->query('SELECT * FROM testing'); 86 $st = $db->query('SELECT * FROM testing'); 110 string(21) "SELECT * FROM testing" [all …]
|
/PHP-8.2/ext/pdo/tests/ |
H A D | pdo_020.phpt | 23 foreach (array('SELECT id, val FROM test', 'SELECT id, val, val2 FROM test', 'SELECT COUNT(*) FROM … 33 Counted 2 columns after SELECT id, val FROM test. 34 Counted 3 columns after SELECT id, val, val2 FROM test. 35 Counted 1 columns after SELECT COUNT(*) FROM test.
|
H A D | bug_65946.phpt | 22 $sql = 'SELECT TOP :limit * FROM test'; 25 $sql = 'SELECT TOP (:limit) * FROM test'; 28 $sql = 'SELECT FIRST :limit * FROM test'; 31 //$sql = 'SELECT * FROM test FETCH FIRST :limit ROWS ONLY'; // Oracle 12c syntax 32 …$sql = "select id from (select a.*, rownum rnum from (SELECT * FROM test) a where rownum <= :limit… 35 $sql = 'SELECT * FROM test LIMIT :limit';
|
H A D | bug_71447.phpt | 26 SELECT -- That's all folks! 36 SELECT 46 SELECT -- That's all folks! 56 SELECT /* That's all folks! */ 66 SELECT -- Is it only \"single quotes? 76 SELECT -- What about question marks here? 87 SELECT -- What about placeholders :bar
|
/PHP-8.2/ext/pdo_pgsql/tests/ |
H A D | disable_prepares.phpt | 19 $stmt = $db->prepare("SELECT statement FROM pg_prepared_statements", array( 22 $stmt2 = $db->prepare("SELECT (?)::int2"); 31 $stmt3 = $db->prepare("SELECT (?)::int4", array( 51 string(17) "SELECT ($1)::int2" 55 string(17) "SELECT ($1)::int2"
|
/PHP-8.2/ext/pcre/tests/ |
H A D | bug41050.phpt | 9 $sql = 'SELECT * FROM #__components'; 20 [0] => SELECT * FROM #__components 21 [1] => SELECT
|
/PHP-8.2/ext/sqlite3/tests/ |
H A D | sqlite3_29_createfunction.phpt | 12 var_dump($db->querySingle('SELECT strtoupper("test")')); 16 var_dump($db->querySingle('SELECT strtolower("TEST")')); 19 var_dump($db->querySingle('SELECT strtoupper("tEst")'));
|
/PHP-8.2/ext/pdo_dblib/tests/ |
H A D | pdo_dblib_param_str_natl.phpt | 13 $stmt = $db->prepare('SELECT :value'); 20 SQL: [13] SELECT :value 21 Sent SQL: [13] SELECT N'foo'
|