OLD | NEW |
1 # 2009 September 23 | 1 # 2009 September 23 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 13 matching lines...) Expand all Loading... |
24 b UNIQUE ON CONFLICT FAIL | 24 b UNIQUE ON CONFLICT FAIL |
25 ); | 25 ); |
26 INSERT INTO t1 VALUES(1, 1); | 26 INSERT INTO t1 VALUES(1, 1); |
27 INSERT INTO t1 VALUES(2, 2); | 27 INSERT INTO t1 VALUES(2, 2); |
28 } | 28 } |
29 catchsql { | 29 catchsql { |
30 BEGIN; | 30 BEGIN; |
31 INSERT INTO t1 VALUES(1, 2); | 31 INSERT INTO t1 VALUES(1, 2); |
32 COMMIT; | 32 COMMIT; |
33 } | 33 } |
34 } {1 {column b is not unique}} | 34 } {1 {UNIQUE constraint failed: t1.b}} |
35 do_test tkt-4a03ed-1.2 { | 35 do_test tkt-4a03ed-1.2 { |
36 db eval { | 36 db eval { |
37 PRAGMA integrity_check; | 37 PRAGMA integrity_check; |
38 } | 38 } |
39 } {ok} | 39 } {ok} |
40 do_test tkt-4a03ed-1.3 { | 40 do_test tkt-4a03ed-1.3 { |
41 db eval { | 41 db eval { |
42 SELECT * FROM t1 ORDER BY a; | 42 SELECT * FROM t1 ORDER BY a; |
43 } | 43 } |
44 } {1 1 2 2} | 44 } {1 1 2 2} |
45 | 45 |
46 finish_test | 46 finish_test |
OLD | NEW |