Skip to content

Commit 9439cfc

Browse files
Fixing pdo_sqlite bug_42589.phpt test when ENABLE_COLUMN_METADATA is disabled
1 parent 6c4b1e0 commit 9439cfc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/pdo_sqlite/tests/bug_42589.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ PDO SQLite Feature Request #42589 (getColumnMeta() should also return table name
33
--EXTENSIONS--
44
pdo
55
pdo_sqlite
6+
--SKIPIF--
7+
<?php
8+
$db = new PDO("sqlite::memory:");
9+
$options = $db->query('PRAGMA compile_options')->fetchAll(PDO::FETCH_COLUMN);
10+
if(!in_array('ENABLE_COLUMN_METADATA', $options, true))
11+
die("skip sqlite3 must be compiled with SQLITE_ENABLE_COLUMN_METADATA");
12+
?>
613
--FILE--
714
<?php
815
$db = new PDO("sqlite::memory:");

0 commit comments

Comments
 (0)