Skip to content

Commit 2f7c831

Browse files
committed
remove 'PRAGMA writable_schema = ON;'
1 parent 55dfc29 commit 2f7c831

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/sqlite3/tests/sqlite3_defensive.phpt

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ $db = new SQLite3(':memory:');
1919
var_dump($db->exec('CREATE TABLE test (a, b);'));
2020

2121
// This does not generate an error!
22-
var_dump($db->exec('PRAGMA writable_schema = ON;'));
2322
var_dump($db->querySingle('PRAGMA writable_schema;'));
2423

2524
// Should be 1
@@ -33,10 +32,9 @@ var_dump($db->querySingle('SELECT COUNT(*) FROM sqlite_master;'));
3332
?>
3433
--EXPECTF--
3534
bool(true)
36-
bool(true)
3735
int(1)
3836
int(1)
3937

4038
Warning: SQLite3::querySingle(): Unable to prepare statement: 1, table sqlite_master may not be modified in %s on line %d
4139
bool(false)
42-
int(1)
40+
int(1)

0 commit comments

Comments
 (0)