Skip to content

Commit

Permalink
Fix dblib ghtest8626 test.
Browse files Browse the repository at this point in the history
Follow-up of GH-8628.
Closes GH-9694.
  • Loading branch information
Yurunsoft authored and devnexen committed Jun 3, 2022
1 parent 0a47fdf commit bfe63f5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ext/pdo/tests/gh8626.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down

0 comments on commit bfe63f5

Please sign in to comment.