1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-09-02 12:21:26 +03:00

Make benign any malloc failures inside the sqlite3_file_control() call within

PRAGMA parsing.  Add a couple simple tests for SQLITE_FCNTL_PRAGMA.

FossilOrigin-Name: a1f29fa653b788f563967f55c3d20e64cbe3f549
This commit is contained in:
drh
2012-02-22 18:21:20 +00:00
parent 3fa9730273
commit e4d25e9cfb
4 changed files with 18 additions and 14 deletions

View File

@@ -273,12 +273,14 @@ ifcapable schema_pragmas {
if {[regexp unix [file_control_vfsname db]]} {
do_test attach-1.30.1 {
file tail [db eval {PRAGMA main.filename}]
} {test.db}
do_test attach-1.30.2 {
db eval {PRAGMA temp.filename}
} {}
ifcapable debug {
do_test attach-1.30.1 {
file tail [db eval {PRAGMA main.filename}]
} {test.db}
do_test attach-1.30.2 {
db eval {PRAGMA temp.filename}
} {}
}
}
ifcapable {trigger} { # Only do the following tests if triggers are enabled