mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix dblib ghtest8626 test.
Follow-up of GH-8628. Closes GH-9694.
This commit is contained in:
parent
0a47fdf538
commit
bfe63f565f
1 changed files with 2 additions and 8 deletions
|
@ -24,20 +24,14 @@ $stmt = $db->prepare('INSERT INTO test VALUES(?)');
|
|||
// fail
|
||||
var_dump($stmt->execute([null]), $stmt->errorCode());
|
||||
$errorInfo = $stmt->errorInfo();
|
||||
if (isset($errorInfo[3])) {
|
||||
unset($errorInfo[3]); // odbc
|
||||
}
|
||||
var_dump($errorInfo);
|
||||
var_dump(array_slice($errorInfo, 0, 3)); // odbc, dblib
|
||||
|
||||
$stmt->closeCursor(); // sqlite
|
||||
|
||||
// success
|
||||
var_dump($stmt->execute([1]), $stmt->errorCode());
|
||||
$errorInfo = $stmt->errorInfo();
|
||||
if (isset($errorInfo[3])) {
|
||||
unset($errorInfo[3]); // odbc
|
||||
}
|
||||
var_dump($errorInfo);
|
||||
var_dump(array_slice($errorInfo, 0, 3)); // odbc, dblib
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue