Skip to content

Commit 2888cb5

Browse files
committed
fix pdo_039.phpt test for Oracle
1 parent 3f62c29 commit 2888cb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/pdo/tests/pdo_039.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if ($pass === false) $pass = NULL;
2929
$conn = new PDO($dsn, $user, $pass, $attr);
3030

3131
$query = 'SELECT 1';
32+
if ($conn->getAttribute(PDO::ATTR_DRIVER_NAME) === 'oci') {
33+
$query .= ' FROM DUAL';
34+
}
3235

3336
var_dump($conn->errorCode());
3437
$stmt = $conn->prepare($query);

0 commit comments

Comments
 (0)