/PHP-8.1/ext/mysqli/tests/ |
H A D | bug75018.phpt | 16 $sql = "DROP TABLE IF EXISTS $tbl"; 17 $mysqli->query($sql); 19 $sql = "CREATE TABLE $tbl (bit_column_1 bit(16) NOT NULL) DEFAULT CHARSET=utf8"; 20 $mysqli->query($sql); 22 $sql = "INSERT INTO $tbl (bit_column_1) VALUES (0)"; 23 $mysqli->query($sql); 24 $sql = "INSERT INTO $tbl (bit_column_1) VALUES (0b10101010101)"; 25 $mysqli->query($sql); 27 $sql = "SELECT bit_column_1 FROM $tbl"; 28 $result = $mysqli->query($sql);
|
H A D | bug79084_collision.phpt | 12 $sql = "SELECT 11111 as `1`, 22222 as `2`"; 16 $link->real_query($sql); 25 $res = $link->query($sql); 33 $res = $link->query($sql);
|
H A D | mysqli_stmt_result_metadata_sqltests.phpt | 19 $offset, $sql, 32 $offset + 1, $sql); 36 $offset + 2, $sql); 42 $offset + 3, $sql, 79 $offset + 5, $sql); 90 $offset + 6, $sql, 98 $offset + 7, $sql, 103 $offset + 8, $sql, 110 $offset + 9, $sql, 116 $offset + 10, $sql, [all …]
|
H A D | bug79084.phpt | 12 $sql = "SELECT 0 as `2007`, 0 as `2008`, 0 as `2020`"; 16 $link->real_query($sql); 25 $res = $link->query($sql); 33 $res = $link->query($sql);
|
H A D | bug42378.phpt | 25 $sql = sprintf("CREATE TABLE test(id INT AUTO_INCREMENT PRIMARY KEY, col1 %s) ENGINE=%s", 27 if (!mysqli_query($link, $sql)) { 38 $sql = sprintf("INSERT INTO test(id, col1) VALUES (%d, %f)", 40 if (!mysqli_query($link, $sql)) { 62 $sql = sprintf('SELECT %s AS _format FROM %s ORDER BY %s', $format, $from, $order_by); 64 $sql = sprintf('SELECT %s AS _format FROM %s', $format, $from); 66 if (!mysqli_stmt_prepare($stmt, $sql)) { 109 $format, $sql); 142 $format, $sql);
|
/PHP-8.1/ext/pdo_firebird/tests/ |
H A D | dialect_1.phpt | 2 PDO_Firebird: support 1 sql dialect 20 $sql = 27 $query = $dbh->prepare($sql); 38 $sql='INSERT INTO test_d1(K, DT) values(?, ?)'; 39 $query = $dbh->prepare($sql); 43 $sql='SELECT * FROM test_d1'; 44 $query = $dbh->prepare($sql);
|
H A D | ignore_parammarks.phpt | 16 $sql = ' 22 $query = $dbh->prepare($sql); 28 $sql = ' 33 $query = $dbh->prepare($sql);
|
/PHP-8.1/ext/oci8/tests/ |
H A D | bind_boolean_1.phpt | 26 $sql = "begin 31 $s = oci_parse($c, $sql); 41 $sql = "begin :b := true; end;"; 42 $s = oci_parse($c, $sql); 50 $sql = 58 $s = oci_parse($c, $sql); 68 $sql = 76 $s = oci_parse($c, $sql); 86 $sql = 94 $s = oci_parse($c, $sql);
|
H A D | bug71148.phpt | 42 $sql = "select :var1, :var2 from dual"; 47 $stmt = oci_parse($c, $sql); 59 $sql = "begin :output1 := 'OUTSTR1'; :output2 := 'OUTSTR2'; end;"; 64 $stmt = oci_parse($c, $sql); 82 $stmt = oci_parse($c, $sql); 95 $sql= "begin :output := bindfunc(:var1, :var2); end;"; 100 $stmt = oci_parse($c, $sql); 112 $sql = "call bindproc(:var1, :var2, :var3)"; 118 $stmt = oci_parse($c, $sql); 134 $sql = "call bindproc(:var1, :var2, :var3)"; [all …]
|
H A D | define6.phpt | 27 $sql = 38 $s1 = oci_parse($c, $sql); 51 $s2 = oci_parse($c, $sql); 65 $s3 = oci_parse($c, $sql); 78 $s4 = oci_parse($c, $sql); 91 $s5 = oci_parse($c, $sql); 104 $s6 = oci_parse($c, $sql);
|
/PHP-8.1/ext/odbc/tests/ |
H A D | bug47803.phpt | 56 $sql = "UPDATE FOO 59 $result = odbc_prepare($link, $sql); 61 print ('[sql] prep: '.$sql); 66 print ('[sql] exec: '."array({$k['name']}, {$k['id']})"); 72 $sql = "SELECT * FROM FOO WHERE [PAR_ID] = ?"; 73 $result = odbc_prepare($link, $sql); 75 print ('[sql] prep: '.$sql); 80 print ('[sql] exec: '."array({$k['id']})");
|
/PHP-8.1/ext/pdo/tests/ |
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'; 38 $stmt = $db->prepare($sql);
|
H A D | bug_71885.phpt | 24 $sql = "SELECT * FROM test WHERE a ?? 1"; 27 $db->exec($sql); 33 $stmt = $db->prepare($sql); 44 $stmt = $db->prepare($sql);
|
H A D | bug_72368.phpt | 20 $sql = "SELECT 1"; 24 $stmt = $db->prepare($sql); 33 $stmt = $db->prepare($sql);
|
/PHP-8.1/ext/pdo_dblib/tests/ |
H A D | datetime_convert.phpt | 13 $sql = "SELECT convert(datetime, '20171027 10:22:44.135') AS [d]"; 17 $stmt = $db->query($sql); 23 $stmt = $db->query($sql);
|
H A D | datetime2.phpt | 14 $sql = "SELECT convert(datetime2, '10231017 10:22:44.1355318') AS [d]"; 18 $stmt = $db->query($sql); 23 $stmt = $db->query($sql);
|
H A D | timeout.phpt | 14 $sql = 'WAITFOR DELAY \'00:00:02\''; 20 $stmt = $db->prepare($sql); 34 $stmt = $db->prepare($sql); 46 $stmt = $db->prepare($sql); 58 $stmt = $db->prepare($sql);
|
H A D | bug_69592.phpt | 13 $sql = ' 20 $stmt = $db->query($sql); 30 $stmt = $db->query($sql);
|
H A D | stringify_uniqueidentifier.phpt | 18 $sql = "SELECT CAST('$testGUID' as uniqueidentifier) as [guid]"; 32 $stmt = $db->query($sql); 42 $stmt = $db->query($sql); 56 $stmt = $db->query($sql);
|
/PHP-8.1/ext/pdo_mysql/tests/ |
H A D | bug66878.phpt | 16 $sql = 'SELECT 123; SELECT 42; SELECT 999'; 18 $stmt = $pdo->query($sql); 24 $stmt = $pdo->query($sql);
|
H A D | pdo_mysql_local_infile_directory_denied.phpt | 16 function exec_and_count($offset, &$db, $sql, $exp) { 18 $ret = $db->exec($sql); 21 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql, 27 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo())); 48 …$sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATE… 49 if (exec_and_count(3, $db, $sql, false)) {
|
H A D | pdo_mysql_local_infile_directory_allowed.phpt | 16 function exec_and_count($offset, &$db, $sql, $exp) { 18 $ret = $db->exec($sql); 21 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql, 27 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo())); 48 …$sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATE… 49 if (exec_and_count(3, $db, $sql, 3)) {
|
H A D | pdo_mysql_local_infile_overrides_local_infile_directory.phpt | 16 function exec_and_count($offset, &$db, $sql, $exp) { 18 $ret = $db->exec($sql); 21 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql, 27 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo())); 48 …$sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATE… 49 if (exec_and_count(3, $db, $sql, 3)) {
|
/PHP-8.1/ext/pcre/tests/ |
H A D | bug41050.phpt | 9 $sql = 'SELECT * FROM #__components'; 11 if (preg_match($regex,$sql, $m)) echo 'matched';
|
/PHP-8.1/ext/pgsql/tests/ |
H A D | bug72028.phpt | 19 $sql = "INSERT INTO $table (value, details) VALUES ($1, $2)"; 22 $result = pg_query_params($conn, $sql, $params); 30 $result = pg_query_params($conn, $sql, $params2);
|