OLD | NEW |
1 # 2009 April 24 | 1 # 2009 April 24 |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } {5 9 sort} | 65 } {5 9 sort} |
66 do_test tkt3824-2.2 { | 66 do_test tkt3824-2.2 { |
67 execsql_status { | 67 execsql_status { |
68 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b, a; | 68 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b, a; |
69 } | 69 } |
70 } {5 9 sort} | 70 } {5 9 sort} |
71 do_test tkt3824-2.3 { | 71 do_test tkt3824-2.3 { |
72 lsort [execsql_status { | 72 lsort [execsql_status { |
73 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b; | 73 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b; |
74 }] | 74 }] |
75 } {5 9 sort} | 75 } {5 9 nosort} |
76 | 76 |
77 do_test tkt3824-3.1 { | 77 do_test tkt3824-3.1 { |
78 db eval { | 78 db eval { |
79 CREATE TABLE t3(x,y); | 79 CREATE TABLE t3(x,y); |
80 INSERT INTO t3 SELECT a, b FROM t1; | 80 INSERT INTO t3 SELECT a, b FROM t1; |
81 INSERT INTO t3 VALUES(234,567); | 81 INSERT INTO t3 VALUES(234,567); |
82 CREATE UNIQUE INDEX t3y ON t3(y); | 82 CREATE UNIQUE INDEX t3y ON t3(y); |
83 DELETE FROM t3 WHERE y IS NULL; | 83 DELETE FROM t3 WHERE y IS NULL; |
84 SELECT * FROM t3; | 84 SELECT * FROM t3; |
85 } | 85 } |
86 } {234 567} | 86 } {234 567} |
87 | 87 |
88 do_test tkt3824-4.1 { | 88 do_test tkt3824-4.1 { |
89 db eval { | 89 db eval { |
90 CREATE TABLE t4(x,y); | 90 CREATE TABLE t4(x,y); |
91 INSERT INTO t4 SELECT a, b FROM t1; | 91 INSERT INTO t4 SELECT a, b FROM t1; |
92 INSERT INTO t4 VALUES(234,567); | 92 INSERT INTO t4 VALUES(234,567); |
93 CREATE UNIQUE INDEX t4y ON t4(y); | 93 CREATE UNIQUE INDEX t4y ON t4(y); |
94 UPDATE t4 SET rowid=rowid+100 WHERE y IS NULL; | 94 UPDATE t4 SET rowid=rowid+100 WHERE y IS NULL; |
95 SELECT rowid, x FROM t4 ORDER BY rowid; | 95 SELECT rowid, x FROM t4 ORDER BY rowid; |
96 } | 96 } |
97 } {6 234 101 1 102 9 103 5 104 123 105 -10} | 97 } {6 234 101 1 102 9 103 5 104 123 105 -10} |
98 | 98 |
99 finish_test | 99 finish_test |
OLD | NEW |