Memory DB works with autovacuum. (CVS 3041)

FossilOrigin-Name: 34dff874a2bf8331be87310809ba11d813fadb7d
This commit is contained in:
drh
2006-01-30 22:48:44 +00:00
parent 9051a420d6
commit 3caf58ea65
4 changed files with 35 additions and 11 deletions
+25 -1
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is in-memory database backend.
#
# $Id: memdb.test,v 1.14 2006/01/17 09:35:02 danielk1977 Exp $
# $Id: memdb.test,v 1.15 2006/01/30 22:48:44 drh Exp $
set testdir [file dirname $argv0]
@@ -388,6 +388,30 @@ ifcapable subquery {
}
}
# Ticket #1524
#
do_test memdb-8.1 {
db close
sqlite3 db {:memory:}
execsql {
PRAGMA auto_vacuum=TRUE;
CREATE TABLE t1(a);
INSERT INTO t1 VALUES(randstr(5000,6000));
INSERT INTO t1 VALUES(randstr(5000,6000));
INSERT INTO t1 VALUES(randstr(5000,6000));
INSERT INTO t1 VALUES(randstr(5000,6000));
INSERT INTO t1 VALUES(randstr(5000,6000));
SELECT count(*) FROM t1;
}
} 5
do_test memdb-8.2 {
execsql {
DELETE FROM t1;
SELECT count(*) FROM t1;
}
} 0
} ;# ifcapable memorydb
finish_test