Skip to content

Commit c7e37af

Browse files
committed
xfail pdo_039.phpt test for Oracle
1 parent 0eb4063 commit c7e37af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/pdo/tests/pdo_039.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ $dir = getenv('REDIR_TEST_DIR');
88
if (false == $dir) die('skip no driver');
99
require_once $dir . 'pdo_test.inc';
1010
PDOTest::skip();
11+
12+
$db = PDOTest::factory();
13+
if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'oci') {
14+
die("xfail OCI driver errorInfo is inconsistent with other PDO drivers");
15+
}
1116
?>
1217
--FILE--
1318
<?php
@@ -29,6 +34,9 @@ if ($pass === false) $pass = NULL;
2934
$conn = new PDO($dsn, $user, $pass, $attr);
3035

3136
$query = 'SELECT 1';
37+
if ($conn->getAttribute(PDO::ATTR_DRIVER_NAME) === 'oci') {
38+
$query .= ' FROM DUAL';
39+
}
3240

3341
var_dump($conn->errorCode());
3442
$stmt = $conn->prepare($query);

0 commit comments

Comments
 (0)