3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
11 # Tests focused on the in-memory journal.
14 set testdir [file dirname $argv0]
15 source $testdir/tester.tcl
16 source $testdir/malloc_common.tcl
17 set testprefix memjournal
21 PRAGMA journal_mode = memory;
29 INSERT INTO t1 VALUES( randomblob(500) );
33 for {set i 1} {$i <= 500} {incr i} {
36 UPDATE t1 SET a=randomblob(500);
38 execsql { SAVEPOINT abc }
39 execsql { UPDATE t1 SET a=randomblob(500) WHERE rowid<=$i AND 0 }
40 execsql { RELEASE abc }