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
25 do_test tkt-d82e3-1.1 {
27 CREATE TABLE t1(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
28 INSERT INTO t1 VALUES(null,'abc');
29 INSERT INTO t1 VALUES(null,'def');
31 INSERT INTO t1 VALUES(null,'ghi');
35 do_test tkt-d82e3-1.2 {
37 CREATE TEMP TABLE t2(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
38 INSERT INTO t2 VALUES(null,'jkl');
39 INSERT INTO t2 VALUES(null,'mno');
41 INSERT INTO t2 VALUES(null,'pqr');
45 do_test tkt-d82e3-1.3 {
47 SELECT 'main', * FROM main.sqlite_sequence
49 SELECT 'temp', * FROM temp.sqlite_sequence
52 } {main t1 3 temp t2 3}
53 do_test tkt-d82e3-1.4 {
56 SELECT 'main', * FROM main.sqlite_sequence
58 SELECT 'temp', * FROM temp.sqlite_sequence
61 } {main t1 3 temp t2 3}
64 do_test tkt-d82e3-2.1 {
66 CREATE TEMP TABLE t3(x);
67 INSERT INTO t3 VALUES(1);
71 INSERT INTO t3 VALUES(8,9);
74 SELECT * FROM temp.t3 JOIN main.t3;
77 do_test tkt-d82e3-2.2 {
80 SELECT * FROM temp.t3 JOIN main.t3;