Skip to content

Commit 955ebdf

Browse files
committed
- Fixed test
1 parent 26d7aaf commit 955ebdf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/pdo/tests/bug_43139.phpt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ $db = PDOTest::factory();
1717
$db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
1818
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
1919

20-
var_dump($db->query('select 0 as abc, 1 as xyz, 2 as def')->fetchAll(PDO::FETCH_GROUP));
20+
$from = '';
21+
if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'oci') {
22+
$from = 'from dual';
23+
}
24+
25+
var_dump($db->query("select 0 as abc, 1 as xyz, 2 as def $from")->fetchAll(PDO::FETCH_GROUP));
2126
?>
2227
--EXPECT--
2328
array(1) {

0 commit comments

Comments
 (0)