1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a bug in handling queries on the sqlite_master table with an empty (0 bytes in size) database file. (CVS 5286)

FossilOrigin-Name: f8238770bf41e17014c6de05363b759304fc80de
This commit is contained in:
danielk1977
2008-06-23 18:49:43 +00:00
parent 52fd7beaba
commit f7b9d66fd4
6 changed files with 53 additions and 20 deletions

View File

@ -12,7 +12,7 @@
# This file contains common code used by many different malloc tests
# within the test suite.
#
# $Id: malloc_common.tcl,v 1.17 2008/06/19 18:17:50 danielk1977 Exp $
# $Id: malloc_common.tcl,v 1.18 2008/06/23 18:49:45 danielk1977 Exp $
# If we did not compile with malloc testing enabled, then do nothing.
#
@ -23,11 +23,6 @@ ifcapable builtin_test {
return 0
}
catch {db close}
sqlite3_shutdown
catch {install_malloc_faultsim 1} msg
sqlite3 db test.db
# Usage: do_malloc_test <test number> <options...>
#
# The first argument, <test number>, is an integer used to name the