We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55dfc29 commit 2f7c831Copy full SHA for 2f7c831
ext/sqlite3/tests/sqlite3_defensive.phpt
@@ -19,7 +19,6 @@ $db = new SQLite3(':memory:');
19
var_dump($db->exec('CREATE TABLE test (a, b);'));
20
21
// This does not generate an error!
22
-var_dump($db->exec('PRAGMA writable_schema = ON;'));
23
var_dump($db->querySingle('PRAGMA writable_schema;'));
24
25
// Should be 1
@@ -33,10 +32,9 @@ var_dump($db->querySingle('SELECT COUNT(*) FROM sqlite_master;'));
33
32
?>
34
--EXPECTF--
35
bool(true)
36
-bool(true)
37
int(1)
38
39
40
Warning: SQLite3::querySingle(): Unable to prepare statement: 1, table sqlite_master may not be modified in %s on line %d
41
bool(false)
42
-int(1)
+int(1)
0 commit comments