Add the soft_heap_limit pragma.

FossilOrigin-Name: c326356f9a18bff5cf36bd59331e2cc207e349fa
This commit is contained in:
drh
2013-09-13 21:01:56 +00:00
parent d49c358e39
commit 55e85ca5f5
5 changed files with 62 additions and 25 deletions
+20 -3
View File
@@ -24,10 +24,27 @@ ifcapable !integrityck {
return
}
sqlite3_soft_heap_limit -1
sqlite3_soft_heap_limit 0
sqlite3_soft_heap_limit 5000
do_test softheap1-1.0 {
execsql {PRAGMA soft_heap_limit}
} [sqlite3_soft_heap_limit -1]
do_test softheap1-1.1 {
execsql {PRAGMA soft_heap_limit=123456; PRAGMA soft_heap_limit;}
} {123456 123456}
do_test softheap1-1.2 {
sqlite3_soft_heap_limit -1
} {123456}
do_test softheap1-1.3 {
execsql {PRAGMA soft_heap_limit(-1); PRAGMA soft_heap_limit;}
} {123456 123456}
do_test softheap1-1.4 {
execsql {PRAGMA soft_heap_limit(0); PRAGMA soft_heap_limit;}
} {0 0}
sqlite3_soft_heap_limit 5000
do_test softheap1-2.0 {
execsql {PRAGMA soft_heap_limit}
} {5000}
do_test softheap1-2.1 {
execsql {
PRAGMA auto_vacuum=1;
CREATE TABLE t1(x);