/php-src/ext/pdo_mysql/tests/ |
H A D | bug66141.phpt | 2 Bug #66141 (mysqlnd quote function is wrong with NO_BACKSLASH_ESCAPES after failed query) 19 $db->query('set session sql_mode="NO_BACKSLASH_ESCAPES"'); 25 $db->query('something that throws an exception'); 35 Warning: PDO::query(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in…
|
H A D | bug79596.phpt | 20 $pdo->query('CREATE TABLE bug79596 (broken FLOAT(2,1))'); 21 $pdo->query('INSERT INTO bug79596 VALUES(4.9)'); 22 var_dump($pdo->query('SELECT broken FROM bug79596')->fetchColumn(0));
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | bug81468.phpt | 18 echo "/n:foo/bar -> ", count($xpath->query('/n:foo/bar')), "\n"; 19 echo "/n:foo/n:bar -> ", count($xpath->query('/n:foo/n:bar')), "\n"; 28 echo "/n:foo/bar -> ", count($xpath->query('/n:foo/bar')), "\n"; 29 echo "/n:foo/n:bar -> ", count($xpath->query('/n:foo/n:bar')), "\n";
|
/php-src/ext/mysqli/tests/ |
H A D | bug68077.phpt | 32 if (!$link->query("DROP TABLE IF EXISTS test")) { 36 …if (!$link->query("CREATE TABLE test (dump1 INT UNSIGNED NOT NULL PRIMARY KEY) ENGINE=" . $engine)… 43 if (!$link->query("SELECT 1 FROM DUAL")) 46 …if (!$link->query("LOAD DATA LOCAL INFILE '" . str_replace("\\", "/", __DIR__) . "/bug53503.data'… 54 if (!$link->query("LOAD DATA LOCAL INFILE '" . __DIR__ . "/bug53503.data' INTO TABLE test")) { 71 if (!$link->query($link, 'DROP TABLE IF EXISTS test')) {
|
H A D | mysqli_stmt_datatype_change.phpt | 23 $c1->query("use $db"); 24 $c2->query("use $db"); 25 $c1->query("drop table if exists type_change"); 26 $c1->query("create table type_change(a int, b char(10)) ENGINE = " . $engine); 27 $c1->query("insert into type_change values (1, 'one'), (2, 'two')"); 41 var_dump($c2->query("alter table type_change drop a"));
|
H A D | bug33491.phpt | 16 public function query_single($query) { 17 $result = parent::query($query);
|
H A D | bug80837.phpt | 16 $mysqli->query('DROP TABLE IF EXISTS test'); 17 $mysqli->query('CREATE TABLE test (b int)'); 18 $mysqli->query('INSERT INTO test VALUES (1),(2),(3)');
|
H A D | gh9841.phpt | 18 $mysqli->query("SELECT ( 24 $mysqli->query("SELECT ( 42 $mysqli->query("SELECT ( 51 $mysqli->query("SELECT (
|
H A D | bug77935.phpt | 15 $db->query('DROP PROCEDURE IF EXISTS testSp'); 16 $db->query(<<<'SQL' 39 $link->query('DROP PROCEDURE IF EXISTS testSp');
|
/php-src/ext/dom/tests/ |
H A D | registerPhpFunctionNS.phpt | 34 var_dump($xpath->query('//a[foo:strtolower(string(@href)) = "https://php.net"]')); 39 var_dump($xpath->query('//a[foo:strtolower(string(@href)) = "https://php.net"]')); 44 var_dump($xpath->query('//a[foo:test(string(@href)) = "https://php.net"]')); 50 var_dump($xpath->query('//a[foo:test(string(@href))]')); 56 $xpath->query('//a[foo:test(string(@href))]'); 62 var_dump($xpath->query('//a[bar:test(string(@href)) = "https://php.net"]'));
|
H A D | DOMNode_C14N_basic.phpt | 32 var_dump($node->C14N(false, false, ['query' => []])); 39 DOMNode::C14N(): Argument #3 ($xpath) must have a "query" key 40 DOMNode::C14N(): Argument #3 ($xpath) "query" option must be a string, array given
|
H A D | bug75451.phpt | 2 Bug #75451 (Assertion fails while foreach on empty xpath query) 10 foreach($xpath->query('/root/noexist') as $child) {
|
H A D | bug69373.phpt | 2 Bug #69373 References to deleted XPath query results 11 $all = $xpath->query('//*');
|
/php-src/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 600 char *query; in pgsqlCopyFromArray_internal() local 635 efree(query); in pgsqlCopyFromArray_internal() 636 query = NULL; in pgsqlCopyFromArray_internal() 674 if (query) { in pgsqlCopyFromArray_internal() 675 efree(query); in pgsqlCopyFromArray_internal() 716 char *query; in pgsqlCopyFromFile_internal() local 753 efree(query); in pgsqlCopyFromFile_internal() 818 char *query; in pgsqlCopyToFile_internal() local 855 efree(query); in pgsqlCopyToFile_internal() 918 char *query; in pgsqlCopyToArray_internal() local [all …]
|
/php-src/ext/pdo_sqlite/tests/ |
H A D | pdo_sqlite_tostring_exception.phpt | 37 $query = $db->query("SELECT * FROM t"); 38 while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
H A D | bug46139.phpt | 19 $stmt = $db->query("SELECT 'foo' test_prop, 1"); 24 $stmt = $db->query("SELECT 'foo' test_prop, 1"); 29 $stmt = $db->query("SELECT 'foo' test_prop, 1");
|
/php-src/ext/pdo_firebird/tests/ |
H A D | bug_76452.phpt | 22 $query = $dbh->prepare("SELECT * FROM test76452"); 23 $query->execute(); 24 var_dump($query->fetch());
|
/php-src/ext/pdo_sqlite/tests/subclasses/ |
H A D | pdo_sqlite_createfunction_with_flags.phpt | 13 $db->query('CREATE TABLE test_pdo_sqlite_createfunction_with_flags (id INT AUTO INCREMENT, name TEX… 14 $db->query('INSERT INTO test_pdo_sqlite_createfunction_with_flags VALUES (NULL, "PHP"), (NULL, "PHP… 18 foreach ($db->query('SELECT testing(name) FROM test_pdo_sqlite_createfunction_with_flags') as $row)…
|
/php-src/ext/dom/tests/compareDocumentPosition/ |
H A D | element_order_same_depth.phpt | 28 $query = $xpath->query("//p"); 29 $foo = $query->item(0); 30 $bar = $query->item(1);
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | bug66584.phpt | 21 $pdo->query("CREATE TABLE test66584 (a int)"); 22 $pdo->query("INSERT INTO test66584 VALUES (165)"); 41 $pdo->query("DROP TABLE test66584"); 64 $pdo->query("DROP TABLE IF EXISTS test66584");
|
/php-src/ext/pdo_odbc/tests/ |
H A D | pdoodbc_001.phpt | 17 $db->query("CREATE TABLE pdoodbc_001 (id INT, name TEXT)"); 18 $db->query("INSERT INTO pdoodbc_001 VALUES (NULL, 'PHP'), (NULL, 'PHP6')"); 20 foreach ($db->query('SELECT name FROM pdoodbc_001') as $row) {
|
/php-src/ext/pdo_dblib/tests/ |
H A D | bug_47588.phpt | 15 $db->query('CREATE TABLE "Test Table47588" ("My Field" int, "Another Field" varchar(32) not null de… 16 $db->query('INSERT INTO "Test Table47588" ("My Field") values(1), (2), (3)'); 17 $rs = $db->query('SELECT * FROM "Test Table47588"');
|
/php-src/ext/soap/tests/ |
H A D | bug80672.phpt | 9 $query = $soap->query(array('sXML' => 'something'));
|
/php-src/ext/sqlite3/ |
H A D | sqlite3.stub.php | 322 public function prepare(string $query): SQLite3Stmt|false {} argument 325 public function exec(string $query): bool {} argument 328 public function query(string $query): SQLite3Result|false {} function in SQLite3 331 public function querySingle(string $query, bool $entireRow = false): mixed {} argument 358 private function __construct(SQLite3 $sqlite3, string $query) {} argument
|
/php-src/ext/mysqli/ |
H A D | mysqli_report.c | 52 void php_mysqli_report_index(const char *query, unsigned int status) { in php_mysqli_report_index() argument 62 php_mysqli_throw_sql_exception("00000", 0, "%s used in query/prepared statement %s", index, query); in php_mysqli_report_index()
|