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 # This file implements regression tests for SQLite library.
13 # This file implements tests to verify that ticket [d82e3f3721] has been
17 set testdir [file dirname $argv0]
18 source $testdir/tester.tcl
20 do_test tkt-d82e3-1.1 {
22 CREATE TABLE t1(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
23 INSERT INTO t1 VALUES(null,'abc');
24 INSERT INTO t1 VALUES(null,'def');
26 INSERT INTO t1 VALUES(null,'ghi');
30 do_test tkt-d82e3-1.2 {
32 CREATE TEMP TABLE t2(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
33 INSERT INTO t2 VALUES(null,'jkl');
34 INSERT INTO t2 VALUES(null,'mno');
36 INSERT INTO t2 VALUES(null,'pqr');
40 do_test tkt-d82e3-1.3 {
42 SELECT 'main', * FROM main.sqlite_sequence
44 SELECT 'temp', * FROM temp.sqlite_sequence
47 } {main t1 3 temp t2 3}
48 do_test tkt-d82e3-1.4 {
51 SELECT 'main', * FROM main.sqlite_sequence
53 SELECT 'temp', * FROM temp.sqlite_sequence
56 } {main t1 3 temp t2 3}
59 do_test tkt-d82e3-2.1 {
61 CREATE TEMP TABLE t3(x);
62 INSERT INTO t3 VALUES(1);
66 INSERT INTO t3 VALUES(8,9);
69 SELECT * FROM temp.t3 JOIN main.t3;
72 do_test tkt-d82e3-2.2 {
75 SELECT * FROM temp.t3 JOIN main.t3;