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.
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
17 source $testdir/malloc_common.tcl
18 set testprefix memjournal2
21 PRAGMA journal_mode = memory;
22 CREATE TABLE t1(a INTEGER PRIMARY KEY, b UNIQUE);
30 SELECT 1 UNION ALL SELECT i+1 FROM s WHERE i<$nRow
32 INSERT INTO t1 SELECT NULL, randomblob(700) FROM s;
35 for {set jj 200} {$jj <= 300} {incr jj} {
36 do_execsql_test 1.2.$jj.1 {
38 UPDATE t1 SET b=randomblob(700) WHERE a<=$jj;
40 do_execsql_test 1.2.$jj.2 {
42 UPDATE t1 SET b=randomblob(700) WHERE a==1;
46 do_execsql_test 1.2.$jj.3 {
48 UPDATE t1 SET b=randomblob(700) WHERE a==1;
53 do_execsql_test 1.2.$jj.4 {
54 PRAGMA integrity_check;