1
0
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:
mistachkin
2017-10-23 20:17:19 +00:00
parent 15dd780a9e
commit 0295774ca0
3 changed files with 11 additions and 8 deletions

View File

@ -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