1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix an assertion fault that can occur while autovacuuming a corrupt database

file.  Add the SQLITE_OMIT_COMPLETE compile-time parameter. (CVS 2361)

FossilOrigin-Name: bb0e7e3857a06347b08d93553ac603e737322262
This commit is contained in:
drh
2005-02-26 17:31:26 +00:00
parent 7530873132
commit ccae6026e6
9 changed files with 63 additions and 36 deletions

View File

@ -11,11 +11,15 @@
# This file implements regression tests for SQLite library. The
# focus of this file is exercising the code in main.c.
#
# $Id: main.test,v 1.19 2005/01/11 17:46:42 drh Exp $
# $Id: main.test,v 1.20 2005/02/26 17:31:28 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
# Only do the next group of tests if the sqlite3_complete API is available
#
ifcapable {complete} {
# Tests of the sqlite_complete() function.
#
do_test main-1.1 {
@ -239,6 +243,8 @@ do_test main-1.36 {
db complete {hi there/***/;}
} {1}
} ;# end ifcapable {complete}
# Try to open a database with a corrupt database file.
#