OLD | NEW |
1 # 2009 February 23 | 1 # 2009 February 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 } {1} | 61 } {1} |
62 do_test whereA-1.7 { | 62 do_test whereA-1.7 { |
63 db close | 63 db close |
64 sqlite3 db test.db | 64 sqlite3 db test.db |
65 db eval { | 65 db eval { |
66 PRAGMA reverse_unordered_selects=1; | 66 PRAGMA reverse_unordered_selects=1; |
67 VACUUM; | 67 VACUUM; |
68 SELECT * FROM t1; | 68 SELECT * FROM t1; |
69 } | 69 } |
70 } {3 4.53 {} 2 hello world 1 2 3} | 70 } {3 4.53 {} 2 hello world 1 2 3} |
| 71 do_execsql_test whereA-1.8 { |
| 72 SELECT * FROM t1 WHERE b=2 AND a IS NULL; |
| 73 } {} |
| 74 do_execsql_test whereA-1.9 { |
| 75 SELECT * FROM t1 WHERE b=2 AND a IS NOT NULL; |
| 76 } {1 2 3} |
71 | 77 |
72 do_test whereA-2.1 { | 78 do_test whereA-2.1 { |
73 db eval { | 79 db eval { |
74 PRAGMA reverse_unordered_selects=0; | 80 PRAGMA reverse_unordered_selects=0; |
75 SELECT * FROM t1 WHERE a>0; | 81 SELECT * FROM t1 WHERE a>0; |
76 } | 82 } |
77 } {1 2 3 2 hello world 3 4.53 {}} | 83 } {1 2 3 2 hello world 3 4.53 {}} |
78 do_test whereA-2.2 { | 84 do_test whereA-2.2 { |
79 db eval { | 85 db eval { |
80 PRAGMA reverse_unordered_selects=1; | 86 PRAGMA reverse_unordered_selects=1; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } | 153 } |
148 } {1 2 1} | 154 } {1 2 1} |
149 do_test whereA-4.6 { | 155 do_test whereA-4.6 { |
150 count { | 156 count { |
151 SELECT x FROM t2 ORDER BY x DESC; | 157 SELECT x FROM t2 ORDER BY x DESC; |
152 } | 158 } |
153 } {2 1 1} | 159 } {2 1 1} |
154 | 160 |
155 | 161 |
156 finish_test | 162 finish_test |
OLD | NEW |