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:
@@ -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
|
||||
|
Reference in New Issue
Block a user