/php-src/ext/pdo_firebird/tests/ |
H A D | bug_77863.phpt | 32 $query->execute(); 36 $query->execute(); 40 $query->execute(); 44 $query->execute(); 48 $query->execute(); 52 $query->execute(); 56 $query->execute(); 61 $query->execute(); 65 $query->execute(); 69 $query->execute(); [all …]
|
H A D | dialect_1.phpt | 29 $query = $dbh->prepare($sql); 30 $query->execute(); 31 $row = $query->fetch(\PDO::FETCH_OBJ); 37 unset($query); 41 $query = $dbh->prepare($sql); 42 $query->execute([0.76, '2019-06-12']); 43 unset($query); 46 $query = $dbh->prepare($sql); 47 $query->execute(); 48 $row = $query->fetch(\PDO::FETCH_OBJ); [all …]
|
H A D | ignore_parammarks.phpt | 24 $query = $dbh->prepare($sql); 25 $query->execute(['d' => 1, 'e' => 2]); 26 $row = $query->fetch(\PDO::FETCH_OBJ); 28 unset($query); 35 $query = $dbh->prepare($sql); 36 $query->execute(['d' => 1, 'e' => 2]); 37 $row = $query->fetch(\PDO::FETCH_OBJ); 39 unset($query);
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | bug62593.phpt | 23 $query->execute(); 24 $errors[] = $query->errorInfo(); 28 $query->execute(); 29 $errors[] = $query->errorInfo(); 35 $query->execute(); 36 $errors[] = $query->errorInfo(); 42 $query->execute(); 43 $errors[] = $query->errorInfo(); 44 var_dump($query->fetchColumn()); 48 $query->execute(); [all …]
|
/php-src/ext/standard/tests/url/ |
H A D | bug74780.phpt | 2 Bug #74780 parse_url() borks when query string contains colon 6 parse_url('//php.net/path?query=1:2'), 7 parse_url('//php.net/path.php?query=a:b'), 8 parse_url('//username@php.net/path?query=1:2') 18 ["query"]=> 19 string(9) "query=1:2" 26 ["query"]=> 27 string(9) "query=a:b" 36 ["query"]=> 37 string(9) "query=1:2"
|
/php-src/ext/mysqli/tests/ |
H A D | bug79375.phpt | 26 echo "Running query on $name\n"; 27 $stmt = $mysqli->prepare($query); 40 echo "Running query on $name\n"; 54 echo "Running query on $name\n"; 56 $res = $mysqli->query($query); 82 $res = $mysqli->query($query, MYSQLI_USE_RESULT); 148 Running query on first connection 153 Running query on first connection 158 Running query on first connection 163 Running query on first connection [all …]
|
H A D | mysqli_pam_sha256.phpt | 21 if (!($res = $link->query("SHOW PLUGINS"))) { 35 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) { 48 $link->query("SET @@session.old_passwords=2"); 50 $link->query('DROP USER shatest'); 51 $link->query("DROP USER shatest@localhost"); 59 if (!$link->query('SET PASSWORD FOR shatest@"%" = "shatest"') || 64 if (!$link->query("DROP TABLE IF EXISTS test") || 65 !$link->query("CREATE TABLE test (id INT)") || 66 !$link->query("INSERT INTO test(id) VALUES (1), (2), (3)")) 107 $link->query('DROP USER shatest'); [all …]
|
H A D | gh7837.phpt | 15 $mysql->query("DROP TABLE IF EXISTS test"); 16 $mysql->query("CREATE TABLE test (`ubigint` bigint unsigned NOT NULL) ENGINE=InnoDB"); 17 $mysql->query("INSERT INTO test (`ubigint`) VALUES (18446744073709551615)"); 18 $mysql->query("INSERT INTO test (`ubigint`) VALUES (9223372036854775808)"); 19 $mysql->query("INSERT INTO test (`ubigint`) VALUES (1)"); 20 $result = $mysql->query("SELECT ubigint FROM test");
|
H A D | mysqli_autocommit_oo.phpt | 25 if (!$mysqli->query('SET AUTOCOMMIT = 0')) 46 if (!$mysqli->query('DROP TABLE IF EXISTS test')) 53 if (!$mysqli->query('INSERT INTO test(id) VALUES (1)')) 56 if (!$mysqli->query('ROLLBACK')) 68 if (!$mysqli->query('DROP TABLE IF EXISTS test')) 71 if (!$mysqli->query('SET AUTOCOMMIT = 1')) 89 if (!$mysqli->query('INSERT INTO test(id) VALUES (1)')) 92 if (!$mysqli->query('ROLLBACK')) 102 if (!$mysqli->query('INSERT INTO test(id) VALUES (1)')) 105 if (!$mysqli->query('COMMIT')) [all …]
|
H A D | mysqli_pam_sha256_public_key_ini.phpt | 21 if (!($res = $link->query("SHOW PLUGINS"))) { 35 if (!($res = $link->query("SHOW STATUS LIKE 'Rsa_public_key'"))) { 60 $link->query("SET @@session.old_passwords=2"); 62 $link->query('DROP USER shatest'); 63 $link->query("DROP USER shatest@localhost"); 71 if (!$link->query('SET PASSWORD FOR shatest@"%" = "shatest"') || 76 if (!$link->query("DROP TABLE IF EXISTS test") || 77 !$link->query("CREATE TABLE test (id INT)") || 78 !$link->query("INSERT INTO test(id) VALUES (1), (2), (3)")) 117 $link->query('DROP USER shatest'); [all …]
|
H A D | gh8267.phpt | 14 $mysqli->query("DROP TABLE IF EXISTS foo"); 15 $mysqli->query("CREATE TABLE foo (id BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (id))"); 16 $mysqli->query("INSERT INTO foo VALUES (9223372036854775807)"); 18 $mysqli->query("INSERT INTO foo VALUES (0)"); 20 $mysqli->query("DROP TABLE IF EXISTS foo");
|
/php-src/Zend/tests/variadic/ |
H A D | variadic_changed_byref_error.phpt | 7 public function query($query, &...$params); 11 public function query($query, ...$params) { } 16 Fatal error: Declaration of MySQL::query($query, ...$params) must be compatible with DB::query($que…
|
H A D | variadic_changed_typehint_error.phpt | 7 public function query($query, string ...$params); 11 public function query($query, int ...$params) { } 16 Fatal error: Declaration of MySQL::query($query, int ...$params) must be compatible with DB::query(…
|
H A D | non_variadic_implements_variadic_error.phpt | 7 public function query($query, ...$params); 11 public function query($query, $params) { } 16 Fatal error: Declaration of MySQL::query($query, $params) must be compatible with DB::query($query,…
|
H A D | adding_additional_optional_parameter_error.phpt | 7 public function query($query, string ...$params); 11 public function query($query, ?int $extraParam = null, string ...$params) { } 16 …ror: Declaration of MySQL::query($query, ?int $extraParam = null, string ...$params) must be compa…
|
H A D | variadic_implements_non_variadic.phpt | 7 public function query($query); 11 public function query($query, ...$params) { }
|
H A D | adding_additional_optional_parameter.phpt | 7 public function query($query, string ...$params); 11 public function query($query, ?string $extraParam = null, string ...$params) { }
|
/php-src/ext/pdo_mysql/tests/ |
H A D | bug_51670.phpt | 2 Bug #51670 (getColumnMeta causes segfault when re-executing query after calling nextRowset) 14 $query = $db->prepare('SELECT 1 AS num'); 15 $query->execute(); 16 if(!is_array($query->getColumnMeta(0))) die('FAIL!'); 17 $query->nextRowset(); 18 $query->execute(); 19 if(!is_array($query->getColumnMeta(0))) die('FAIL!');
|
H A D | bug79375.phpt | 31 echo "Running query on $name\n"; 33 $stmt = $db->query($query); 44 echo "Running query on $name\n"; 45 $stmt = $db->prepare($query); 60 $stmt = $db->prepare($query); 101 Running query on first connection 103 Running query on second connection 106 Running query on first connection 108 Running query on second connection 111 Running query on first connection [all …]
|
H A D | pdo_mysql_rollback.phpt | 25 $db->query("INSERT INTO {$table}(id, label) VALUES (100, 'z')"); 38 $db->query("INSERT INTO {$table}(id, label) VALUES (100, 'z')"); 39 $db->query("CREATE TABLE {$table2}(id INT)"); 51 $db->query("DROP TABLE IF EXISTS {$table2}"); 52 $db->query("CREATE TABLE {$table2}(id INT) ENGINE=MyISAM"); 54 $db->query("INSERT INTO {$table2}(id) VALUES (1)"); 60 $db->query("DROP TABLE IF EXISTS {$table2}"); 64 $db->query("DELETE FROM {$table}"); 70 $db->query("DELETE FROM {$table}"); 76 $db->query("DELETE FROM {$table}"); [all …]
|
H A D | pdo_mysql_attr_autocommit.phpt | 20 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC); 28 $row = $db->query('SELECT @@autocommit AS _autocommit')->fetch(PDO::FETCH_ASSOC); 33 if (!$db->query('SET autocommit = 1')) 40 if (!$db->query('SET autocommit = 0')) 61 $db->query("INSERT INTO {$table} (id, label) VALUES (100, 'z')"); 68 $db->query('ROLLBACK'); 76 $db->query("DELETE FROM {$table} WHERE id = 100"); 77 $db->query('ROLLBACK'); 82 $db->query("DELETE FROM {$table} WHERE id = 100"); 83 $db->query('COMMIT'); [all …]
|
H A D | pdo_mysql_stmt_unbuffered_2050.phpt | 2 MySQL PDO:query() vs. PDO::prepare() and MySQL error 2050 28 $stmt = $db->query("SELECT id, label FROM {$table} WHERE id = 1"); 30 $stmt = $db->query("SELECT id, label FROM {$table} WHERE id = 1"); 42 PDO::query() will prepare and execute a statement in one step. 43 After the execution of PDO::query(), MySQL expects you to fetch 49 $stmt = PDO::query(<some query>) 57 $stmt = PDO::query(<some query>) 58 PDO::query(<some query>) 64 $stmt = PDO::query(<some query>) 83 - use prepare() + execute() instead of query() [all …]
|
/php-src/ext/pdo_dblib/tests/ |
H A D | bug_38955.phpt | 17 $db->query("CREATE table test38955(val int)"); 19 $db->query("INSERT INTO test38955(val) values(1)"); 20 $db->query("INSERT INTO test38955(val) values(2)"); 21 $db->query("INSERT INTO test38955(val) values(3)"); 22 $db->query("INSERT INTO test38955(val) values(4)"); 27 $db->query("INSERT INTO test38955(val) values(5)"); 28 $db->query("INSERT INTO test38955(val) values(6)"); 29 $db->query("INSERT INTO test38955(val) values(7)"); 30 $db->query("INSERT INTO test38955(val) values(8)"); 33 $rs = $db->query("SELECT * FROM test38955");
|
H A D | timeout.phpt | 2 PDO_DBLIB: Set query timeouts 19 … timeout attribute, set after instance created, will affect query timeout, causing this query to f… 33 …timeout attribute, set after instance created, will control query timeout, causing this query to f… 47 // regular timeout attribute will affect query timeout, causing this query to fail 59 // pdo_dblib-specific timeout attribute will control query timeout, causing this query to fail
|
/php-src/ext/pdo/tests/ |
H A D | bug_44173.phpt | 2 PDO Common: Bug #44173 (PDO->query() parameter parsing/checking needs an update) 24 $stmt = $db->query("SELECT * FROM test44173", PDO::FETCH_LAZY, 0, []); 33 $stmt = $db->query("SELECT * FROM test44173", 'abc'); 40 $stmt = $db->query("SELECT * FROM test44173", PDO::FETCH_CLASS, 0, 0, 0); 49 $stmt = $db->query("SELECT * FROM test44173", PDO::FETCH_INTO); 58 $stmt = $db->query("SELECT * FROM test44173", PDO::FETCH_COLUMN); 67 $stmt = $db->query("SELECT * FROM test44173", PDO::FETCH_CLASS); 82 PDO::query() expects exactly 2 arguments for the fetch mode provided, 4 given 83 PDO::query(): Argument #2 ($fetchMode) must be of type ?int, string given 84 PDO::query() expects at most 4 arguments for the fetch mode provided, 5 given [all …]
|