1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +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

@ -15,7 +15,7 @@
# interface is pretty well tested. This file contains some addition
# tests for fringe issues that the main test suite does not cover.
#
# $Id: tclsqlite.test,v 1.37 2005/01/24 00:28:43 drh Exp $
# $Id: tclsqlite.test,v 1.38 2005/02/26 17:31:28 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -96,10 +96,12 @@ do_test tcl-1.12 {
set v [catch {db commit_hook a b c} msg]
lappend v $msg
} {1 {wrong # args: should be "db commit_hook ?CALLBACK?"}}
do_test tcl-1.13 {
set v [catch {db complete} msg]
lappend v $msg
} {1 {wrong # args: should be "db complete SQL"}}
ifcapable {complete} {
do_test tcl-1.13 {
set v [catch {db complete} msg]
lappend v $msg
} {1 {wrong # args: should be "db complete SQL"}}
}
do_test tcl-1.14 {
set v [catch {db eval} msg]
lappend v $msg