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 #***********************************************************************
13 set testdir [file dirname $argv0]
14 source $testdir/tester.tcl
15 set testprefix subjournal
18 PRAGMA temp_store = memory;
19 CREATE TABLE t1(a,b,c);
20 INSERT INTO t1 VALUES(1, 2, 3);
24 INSERT INTO t1 VALUES(4, 5, 6);
26 INSERT INTO t1 VALUES(7, 8, 9);
35 PRAGMA cache_size = 5;
36 CREATE TABLE t2(a BLOB);
37 CREATE INDEX i2 ON t2(a);
39 SELECT 1 UNION ALL SELECT i+1 FROM s WHERE i<100
40 ) INSERT INTO t2 SELECT randomblob(500) FROM s;
46 sqlite3_backup B db2 main db main
47 set nPage [db one {PRAGMA page_count}]
48 B step [expr $nPage-10]
53 UPDATE t2 SET a=randomblob(499);
55 UPDATE t2 SET a=randomblob(498);
58 PRAGMA integrity_check;
66 execsql { PRAGMA integrity_check } db2