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 memjournal2
20 PRAGMA journal_mode = memory;
21 CREATE TABLE t1(a INTEGER PRIMARY KEY, b UNIQUE);
29 SELECT 1 UNION ALL SELECT i+1 FROM s WHERE i<$nRow
31 INSERT INTO t1 SELECT NULL, randomblob(700) FROM s;
34 for {set jj 200} {$jj <= 300} {incr jj} {
35 do_execsql_test 1.2.$jj.1 {
37 UPDATE t1 SET b=randomblob(700) WHERE a<=$jj;
39 do_execsql_test 1.2.$jj.2 {
41 UPDATE t1 SET b=randomblob(700) WHERE a==1;
45 do_execsql_test 1.2.$jj.3 {
47 UPDATE t1 SET b=randomblob(700) WHERE a==1;
52 do_execsql_test 1.2.$jj.4 {
53 PRAGMA integrity_check;