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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/null.test
diff --git a/third_party/sqlite/src/test/null.test b/third_party/sqlite/src/test/null.test
index f3782a7531bc0d09c00cba36c9bcb26a1bc1176f..e8eeb9740bdd3a1ddbfaefe5b6661afc57638c01 100644
--- a/third_party/sqlite/src/test/null.test
+++ b/third_party/sqlite/src/test/null.test
@@ -278,6 +278,23 @@ do_test null-8.15 {
}
} {1}
+do_execsql_test null-9.1 {
+ CREATE TABLE t5(a, b, c);
+ CREATE UNIQUE INDEX t5ab ON t5(a, b);
+
+ INSERT INTO t5 VALUES(1, NULL, 'one');
+ INSERT INTO t5 VALUES(1, NULL, 'i');
+ INSERT INTO t5 VALUES(NULL, 'x', 'two');
+ INSERT INTO t5 VALUES(NULL, 'x', 'ii');
+}
+
+do_execsql_test null-9.2 {
+ SELECT * FROM t5 WHERE a = 1 AND b IS NULL;
+} {1 {} one 1 {} i}
+
+do_execsql_test null-9.3 {
+ SELECT * FROM t5 WHERE a IS NULL AND b = 'x';
+} {{} x two {} x ii}
finish_test
« 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