Update test file dbpagefault.test to account for the restriction on using SQLITE_VTAB_DIRECTONLY virtual tables from within triggers.
FossilOrigin-Name: 2b68fc8aa35cc69e4d2c26aaebbf3f2b1f1c08d15ca9efcbe5be21d45735d3f1
This commit is contained in:
+18
-8
@@ -57,15 +57,25 @@ do_execsql_test 3.0 {
|
||||
END;
|
||||
}
|
||||
|
||||
do_faultsim_test 3 -prep {
|
||||
catch { db close }
|
||||
sqlite3 db test.db
|
||||
execsql { PRAGMA trusted_schema = true }
|
||||
} -body {
|
||||
execsql { INSERT INTO x1 DEFAULT VALUES; }
|
||||
} -test {
|
||||
faultsim_test_result {0 {}}
|
||||
# This test case no longer works, as it is no longer possible to use
|
||||
# virtual table sqlite_dbpage from within a trigger.
|
||||
#
|
||||
do_execsql_test 3.1 {
|
||||
PRAGMA trusted_schema = 1;
|
||||
}
|
||||
do_catchsql_test 3.2 {
|
||||
PRAGMA trusted_schema = 1;
|
||||
INSERT INTO x1 DEFAULT VALUES;
|
||||
} {1 {unsafe use of virtual table "sqlite_dbpage"}}
|
||||
#do_faultsim_test 3 -prep {
|
||||
# catch { db close }
|
||||
# sqlite3 db test.db
|
||||
# execsql { PRAGMA trusted_schema = 1 }
|
||||
#} -body {
|
||||
# execsql { INSERT INTO x1 DEFAULT VALUES; }
|
||||
#} -test {
|
||||
# faultsim_test_result {0 {}}
|
||||
#}
|
||||
|
||||
|
||||
finish_test
|
||||
|
||||
Reference in New Issue
Block a user