Make sure the auto_vacuum=INCREMENTAL setting is preserved across a VACUUM.

Ticket #3663. (CVS 6304)

FossilOrigin-Name: ded04f12f41504e4a3ecd5164f0d4cbbde5e16f7
This commit is contained in:
drh
2009-02-18 20:31:18 +00:00
parent 8b39db1c83
commit 076d4661a6
5 changed files with 44 additions and 17 deletions
+8 -3
View File
@@ -14,7 +14,7 @@
# Note: There are also some tests for incremental vacuum and IO
# errors in incrvacuum_ioerr.test.
#
# $Id: incrvacuum.test,v 1.22 2009/01/30 05:47:15 shane Exp $
# $Id: incrvacuum.test,v 1.23 2009/02/18 20:31:18 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -673,9 +673,14 @@ do_test incrvacuum-12.2 {
do_test incrvacuum-12.3 {
execsql { ROLLBACK; } db2
execsql { PRAGMA auto_vacuum }
} {1}
} {2} ;# Still 2 because PRAGMA auto_vacuum setting held in case of vacuum
do_test incrvacuum-12.4 {
db close
sqlite3 db test.db
execsql { PRAGMA auto_vacuum }
} {1} ;# Revert to 1 because the database file did not change
do_test incrvacuum-12.3 {
do_test incrvacuum-12.5 {
execsql { SELECT * FROM sqlite_master }
execsql { PRAGMA auto_vacuum }
} {1}