/PHP-7.0/ext/odbc/tests/ |
H A D | bug47803.phpt | 54 $sql = "UPDATE FOO 57 $result = odbc_prepare($link, $sql); 59 print ('[sql] prep: '.$sql); 64 print ('[sql] exec: '."array({$k['name']}, {$k['id']})"); 70 $sql = "SELECT * FROM FOO WHERE [PAR_ID] = ?"; 71 $result = odbc_prepare($link, $sql); 73 print ('[sql] prep: '.$sql); 78 print ('[sql] exec: '."array({$k['id']})");
|
H A D | bug73448.phpt | 21 foreach ($sqlCommandList as $exampleNumber => $sql) { 22 $r = @odbc_exec($conn, $sql); 28 var_dump($sql, $n, $e, strlen($e));
|
/PHP-7.0/ext/oci8/tests/ |
H A D | bind_boolean_1.phpt | 25 $sql = "begin 30 $s = oci_parse($c, $sql); 40 $sql = "begin :b := true; end;"; 41 $s = oci_parse($c, $sql); 49 $sql = 57 $s = oci_parse($c, $sql); 67 $sql = 75 $s = oci_parse($c, $sql); 85 $sql = 93 $s = oci_parse($c, $sql);
|
H A D | bug71148.phpt | 40 $sql = "select :var1, :var2 from dual"; 45 $stmt = oci_parse($c, $sql); 57 $sql = "begin :output1 := 'OUTSTR1'; :output2 := 'OUTSTR2'; end;"; 62 $stmt = oci_parse($c, $sql); 80 $stmt = oci_parse($c, $sql); 93 $sql= "begin :output := bindfunc(:var1, :var2); end;"; 98 $stmt = oci_parse($c, $sql); 110 $sql = "call bindproc(:var1, :var2, :var3)"; 116 $stmt = oci_parse($c, $sql); 132 $sql = "call bindproc(:var1, :var2, :var3)"; [all …]
|
H A D | define6.phpt | 25 $sql = 36 $s1 = oci_parse($c, $sql); 49 $s2 = oci_parse($c, $sql); 63 $s3 = oci_parse($c, $sql); 76 $s4 = oci_parse($c, $sql); 89 $s5 = oci_parse($c, $sql); 102 $s6 = oci_parse($c, $sql);
|
H A D | exec_fetch.phpt | 10 $sql = "select 2 from nonex_dual"; 11 $stmt = oci_parse($c, $sql);
|
H A D | bug36010.phpt | 15 $sql = "begin :p_clob := 'lob string'; end;"; 16 $stid = oci_parse($conn, $sql);
|
H A D | bug36096.phpt | 10 $sql = "SELECT 'ABC' FROM DUAL WHERE 1<>1"; 11 $stmt = oci_parse($c, $sql);
|
/PHP-7.0/ext/pdo/tests/ |
H A D | bug_65946.phpt | 23 $sql = 'SELECT TOP 1 * FROM test'; 26 $sql = 'SELECT FIRST :limit * FROM test'; 29 //$sql = 'SELECT * FROM test FETCH FIRST :limit ROWS ONLY'; // Oracle 12c syntax 30 …$sql = "select id from (select a.*, rownum rnum from (SELECT * FROM test) a where rownum <= :limit… 33 $sql = 'SELECT * FROM test LIMIT :limit'; 36 $stmt = $db->prepare($sql);
|
H A D | pdo_020.phpt | 22 …ELECT id, val FROM test', 'SELECT id, val, val2 FROM test', 'SELECT COUNT(*) FROM test') as $sql) { 24 $stmt = $db->query($sql); 26 echo "Counted $res columns after $sql.\n";
|
/PHP-7.0/ext/mysqli/tests/ |
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 | 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);
|
H A D | mysqli_stmt_fetch_bit.phpt | 30 …!mysqli_query($link, $sql = sprintf('CREATE TABLE test(id INT, label BIT(%d)) ENGINE="%s"', $bits,… 39 $sql = sprintf("INSERT INTO test(id, label) VALUES (%d, b'%s')", $value, decbin($value)); 41 if (!mysqli_stmt_prepare($stmt, $sql) || 46 $sql = sprintf("SELECT id, label + 0 AS _label0, label FROM test WHERE id = %d", $value); 47 if (!mysqli_stmt_prepare($stmt, $sql) ||
|
H A D | mysqli_fetch_array_large.phpt | 18 $sql = "INSERT INTO test(label) VALUES "; 20 while (strlen($sql) < ($package_size - 259)) 21 $sql .= sprintf("('%s'), ", $random_char); 23 $sql = substr($sql, 0, -2); 24 $len = strlen($sql); 27 if (!@mysqli_query($link, $sql)) {
|
/PHP-7.0/ext/pdo_dblib/tests/ |
H A D | timeout.phpt | 13 $sql = 'WAITFOR DELAY \'00:00:02\''; 16 $stmt = $db->prepare($sql); 24 $stmt = $db->prepare($sql); 37 $stmt = $db->prepare($sql); 49 $stmt = $db->prepare($sql); 61 $stmt = $db->prepare($sql);
|
H A D | stringify_uniqueidentifier.phpt | 17 $sql = "SELECT CAST('$testGUID' as uniqueidentifier) as [guid]"; 31 $stmt = $db->query($sql); 41 $stmt = $db->query($sql); 55 $stmt = $db->query($sql);
|
/PHP-7.0/ext/pdo_firebird/ |
H A D | firebird_driver.c | 133 static int firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, /* {{{ */ in firebird_handle_preparer() argument 153 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &num_sqlda, &s, np)) { in firebird_handle_preparer() 219 static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) /* {{{ */ in firebird_handle_doer() argument 234 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &out_sqlda, &stmt, 0)) { in firebird_handle_doer() 434 if ( !(in_quote ^= (sql[l] == '\''))) { in firebird_alloc_prepare_stmt() 436 switch (sql[l]) { in firebird_alloc_prepare_stmt() 440 *ppname++ = sql[l]; in firebird_alloc_prepare_stmt() 447 … if ((in_param &= ((sql[l] >= 'A' && sql[l] <= 'Z') || (sql[l] >= 'a' && sql[l] <= 'z') in firebird_alloc_prepare_stmt() 448 … || (sql[l] >= '0' && sql[l] <= '9') || sql[l] == '_' || sql[l] == '-'))) { in firebird_alloc_prepare_stmt() 451 *ppname++ = sql[l]; in firebird_alloc_prepare_stmt() [all …]
|
/PHP-7.0/ext/pcre/tests/ |
H A D | bug41050.phpt | 9 $sql = 'SELECT * FROM #__components'; 11 if (preg_match($regex,$sql, $m)) echo 'matched';
|
/PHP-7.0/ext/pdo_pgsql/tests/ |
H A D | bug72294.phpt | 100 public function prepare( $pdo, $sql ) 102 //return $pdo->prepare( $sql ); 103 $this->cached_statements[$sql] = $pdo->prepare( $sql ); 105 return $this->cached_statements[$sql];
|
/PHP-7.0/ext/pgsql/tests/ |
H A D | 08escape.phpt | 47 $sql = "INSERT INTO ".$table_name." (num, bin) VALUES (-9999, CAST ('".$escaped_data."' AS BYTEA));… 48 pg_query($db, $sql); 52 $sql = "SELECT bin::bytea FROM ".$table_name." WHERE num = -9999"; 53 $result = pg_query($db, $sql); 65 $result = pg_query($db, $sql);
|
H A D | bug72028.phpt | 17 $sql = "INSERT INTO $table (value, details) VALUES ($1, $2)"; 20 $result = pg_query_params($conn, $sql, $params); 28 $result = pg_query_params($conn, $sql, $params2);
|
H A D | 22pg_fetch_object.phpt | 19 $sql = "SELECT * FROM $table_name WHERE num = 0"; 20 $result = pg_query($db, $sql) or die('Cannot qeury db');
|
/PHP-7.0/ext/soap/interop/ |
H A D | client_round2_interop.php | 196 $sql = "select * from endpoints "; 198 $sql .= "where class='$base' "; 199 if (!$all) $sql .= "and status=1"; 201 if (!$all) $sql .= "where status=1"; 202 $sql .= " order by endpointName"; 205 $db_ep = $this->dbc->getAll($sql,NULL, DB_FETCHMODE_ASSOC ); 207 echo $sql."\n"; 274 $sql = "delete from results where endpoint=$endpoint_id ". 279 $res = $this->dbc->query($sql); 293 $res = $this->dbc->query($sql); [all …]
|
/PHP-7.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_exec_ddl.phpt | 11 function exec_and_count($offset, &$db, $sql, $exp, $suppress_warning = false) { 16 $ret = @$db->exec($sql); 18 $ret = $db->exec($sql); 22 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql, 29 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo()));
|
H A D | pdo_mysql_exec_load_data.phpt | 33 function exec_and_count($offset, &$db, $sql, $exp) { 37 $ret = $db->exec($sql); 40 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql, 54 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo())); 84 …$sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATE… 86 if (exec_and_count(4, $db, $sql, 2)) {
|