Skip to content

Commit 8666b83

Browse files
committed
remove 'PRAGMA writable_schema;
1 parent 55dfc29 commit 8666b83

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/sqlite3/tests/sqlite3_defensive.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var_dump($db->exec('CREATE TABLE test (a, b);'));
2020

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

2524
// Should be 1
2625
var_dump($db->querySingle('SELECT COUNT(*) FROM sqlite_master;'));
@@ -35,8 +34,7 @@ var_dump($db->querySingle('SELECT COUNT(*) FROM sqlite_master;'));
3534
bool(true)
3635
bool(true)
3736
int(1)
38-
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)