mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
In the 'swarmvtabfault' test module, make sure to close the database handle prior to raising an error from the 'not found' callback script.
FossilOrigin-Name: f317037b31b19007e30bb41c54506d9d241a6d590c2b31e2ddda10d4f6e7605b
This commit is contained in:
@ -24,8 +24,11 @@ ifcapable !vtab {
|
||||
proc fetch_db {file} {
|
||||
forcedelete $file
|
||||
sqlite3 dbX $file
|
||||
dbX eval { CREATE TABLE t1(a INTEGER PRIMARY KEY, b) }
|
||||
set rc [catch {
|
||||
dbX eval { CREATE TABLE t1(a INTEGER PRIMARY KEY, b) }
|
||||
} res]
|
||||
dbX close
|
||||
if {$rc!=0} {error $res}
|
||||
}
|
||||
|
||||
forcedelete test.db1
|
||||
|
Reference in New Issue
Block a user