Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: third_party/sqlite/src/test/null.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/notify2.test ('k') | third_party/sqlite/src/test/numindex1.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/notify2.test ('k') | third_party/sqlite/src/test/numindex1.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698