Home
last modified time | relevance | path

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

12345

/php-src/ext/mysqli/tests/
H A Dbug75018.phpt16 $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 Dbug79084_collision.phpt12 $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 Dbug79084.phpt12 $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 Dbug42378.phpt25 $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-src/ext/odbc/tests/
H A Dbug47803.phpt55 $sql = "UPDATE bug47803
58 $result = odbc_prepare($link, $sql);
60 print ('[sql] prep: '.$sql);
65 print ('[sql] exec: '."array({$k['name']}, {$k['id']})");
71 $sql = "SELECT * FROM bug47803 WHERE [PAR_ID] = ?";
72 $result = odbc_prepare($link, $sql);
74 print ('[sql] prep: '.$sql);
79 print ('[sql] exec: '."array({$k['id']})");
H A Dbug73448.phpt25 foreach ($sqlCommandList as $exampleNumber => $sql) {
26 $r = @odbc_exec($conn, $sql);
32 var_dump($sql, $n, $e);
/php-src/ext/pdo/tests/
H A Dbug_65946.phpt22 $sql = 'SELECT TOP :limit * FROM test65946';
25 $sql = 'SELECT TOP (:limit) * FROM test65946';
28 $sql = 'SELECT FIRST :limit * FROM test65946';
31 //$sql = 'SELECT * FROM test65946 FETCH FIRST :limit ROWS ONLY'; // Oracle 12c syntax
32 …$sql = "select id from (select a.*, rownum rnum from (SELECT * FROM test65946) a where rownum <= :…
35 $sql = 'SELECT * FROM test65946 LIMIT :limit';
38 $stmt = $db->prepare($sql);
H A Dbug_71885.phpt24 $sql = "SELECT * FROM test71885 WHERE a ?? 1";
27 $db->exec($sql);
33 $stmt = $db->prepare($sql);
44 $stmt = $db->prepare($sql);
H A Dbug_72368.phpt20 $sql = "SELECT 1";
24 $stmt = $db->prepare($sql);
33 $stmt = $db->prepare($sql);
/php-src/ext/pdo_firebird/tests/
H A Ddialect_1.phpt2 PDO_Firebird: support 1 sql dialect
22 $sql =
29 $query = $dbh->prepare($sql);
40 $sql='INSERT INTO test_dialect_1(K, DT) values(?, ?)';
41 $query = $dbh->prepare($sql);
45 $sql='SELECT * FROM test_dialect_1';
46 $query = $dbh->prepare($sql);
H A Dignore_parammarks.phpt18 $sql = '
24 $query = $dbh->prepare($sql);
30 $sql = '
35 $query = $dbh->prepare($sql);
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_local_infile_directory_denied.phpt16 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()));
45 …$sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test_local_inifile_dir_denied FIELDS TERMINAT…
46 if (exec_and_count(3, $db, $sql, false)) {
H A Dbug66878.phpt15 $sql = 'SELECT 123; SELECT 42; SELECT 999';
17 $stmt = $pdo->query($sql);
23 $stmt = $pdo->query($sql);
H A Dpdo_mysql_local_infile_directory_allowed.phpt16 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()));
45 …$sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test_local_inifile_dir_allowed FIELDS TERMINA…
46 if (exec_and_count(3, $db, $sql, 3)) {
H A Dpdo_mysql_local_infile_overrides_local_infile_directory.phpt16 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()));
45 …$sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test_local_inifile_overrides FIELDS TERMINATE…
46 if (exec_and_count(3, $db, $sql, 3)) {
H A Dpdo_mysql_exec_ddl.phpt12 function exec_and_count($offset, &$db, $sql, $exp, $suppress_warning = false) {
15 $ret = @$db->exec($sql);
17 $ret = $db->exec($sql);
21 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql,
28 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo()));
H A Dpdo_mysql_exec_load_data.phpt33 function exec_and_count($offset, &$db, $sql, $exp) {
35 $ret = $db->exec($sql);
38 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql,
50 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo()));
76 $sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test_mysql_exec_load_data FIELDS TERMINATED BY…
78 if (exec_and_count(4, $db, $sql, 2)) {
/php-src/ext/pdo_dblib/tests/
H A Ddatetime_convert.phpt16 $sql = "SELECT convert(datetime, '20171027 10:22:44.135') AS [d]";
20 $stmt = $db->query($sql);
26 $stmt = $db->query($sql);
H A Ddatetime2.phpt17 $sql = "SELECT convert(datetime2, '10231017 10:22:44.1355318') AS [d]";
21 $stmt = $db->query($sql);
26 $stmt = $db->query($sql);
H A Dtimeout.phpt17 $sql = 'WAITFOR DELAY \'00:00:02\'';
23 $stmt = $db->prepare($sql);
37 $stmt = $db->prepare($sql);
49 $stmt = $db->prepare($sql);
61 $stmt = $db->prepare($sql);
H A Dbug_69592.phpt16 $sql = '
23 $stmt = $db->query($sql);
33 $stmt = $db->query($sql);
H A Dstringify_uniqueidentifier.phpt20 $sql = "SELECT CAST('$testGUID' as uniqueidentifier) as [guid]";
34 $stmt = $db->query($sql);
44 $stmt = $db->query($sql);
58 $stmt = $db->query($sql);
/php-src/ext/pcre/tests/
H A Dbug41050.phpt9 $sql = 'SELECT * FROM #__components';
11 if (preg_match($regex,$sql, $m)) echo 'matched';
/php-src/ext/pdo_pgsql/tests/
H A Dbug72294.phpt103 public function prepare( $pdo, $sql )
105 //return $pdo->prepare( $sql );
106 $this->cached_statements[$sql] = $pdo->prepare( $sql );
108 return $this->cached_statements[$sql];
/php-src/ext/pgsql/tests/
H A Dbug72028.phpt19 $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);

Completed in 26 milliseconds

12345