2 #pragma ident "%Z%%M% %I% %E% SMI"
5 set testdir [file dirname $argv0]
6 source $testdir/tester.tcl
9 set DB [sqlite db test.db]
13 INSERT INTO t1 VALUES(1);
14 INSERT INTO t1 VALUES(2);
15 INSERT INTO t1 VALUES(3);
16 INSERT INTO t1 VALUES(4);
21 CREATE TABLE t3(a unique on conflict rollback);
22 INSERT INTO t3 SELECT a FROM t1;
24 INSERT INTO t1 SELECT * FROM t1;
28 set STMT [sqlite_compile $DB "SELECT a FROM t1" TAIL]
36 # This causes a ROLLBACK, which deletes the table out from underneath the
37 # SELECT statement. Causes a crash.
39 INSERT INTO t3 SELECT a FROM t1;
41 } {1 {column a is not unique}}