OLD | NEW |
1 # 2001 September 15 | 1 # 2001 September 15 |
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 execsql { | 271 execsql { |
272 SELECT x FROM t4 WHERE y>6 ORDER BY x; | 272 SELECT x FROM t4 WHERE y>6 ORDER BY x; |
273 } | 273 } |
274 } {1} | 274 } {1} |
275 do_test null-8.15 { | 275 do_test null-8.15 { |
276 execsql { | 276 execsql { |
277 SELECT x FROM t4 WHERE y!=33 ORDER BY x; | 277 SELECT x FROM t4 WHERE y!=33 ORDER BY x; |
278 } | 278 } |
279 } {1} | 279 } {1} |
280 | 280 |
| 281 do_execsql_test null-9.1 { |
| 282 CREATE TABLE t5(a, b, c); |
| 283 CREATE UNIQUE INDEX t5ab ON t5(a, b); |
| 284 |
| 285 INSERT INTO t5 VALUES(1, NULL, 'one'); |
| 286 INSERT INTO t5 VALUES(1, NULL, 'i'); |
| 287 INSERT INTO t5 VALUES(NULL, 'x', 'two'); |
| 288 INSERT INTO t5 VALUES(NULL, 'x', 'ii'); |
| 289 } |
| 290 |
| 291 do_execsql_test null-9.2 { |
| 292 SELECT * FROM t5 WHERE a = 1 AND b IS NULL; |
| 293 } {1 {} one 1 {} i} |
| 294 |
| 295 do_execsql_test null-9.3 { |
| 296 SELECT * FROM t5 WHERE a IS NULL AND b = 'x'; |
| 297 } {{} x two {} x ii} |
281 | 298 |
282 | 299 |
283 finish_test | 300 finish_test |
OLD | NEW |