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

Unified Diff: third_party/sqlite/src/test/tkt3871.test

Issue 694353003: Get `gn gen` to succeed on Windows (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove GYP_DEFINES code Created 6 years, 1 month 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/tkt3841.test ('k') | third_party/sqlite/src/test/tkt3879.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/tkt3871.test
diff --git a/third_party/sqlite/src/test/tkt3871.test b/third_party/sqlite/src/test/tkt3871.test
new file mode 100644
index 0000000000000000000000000000000000000000..e7dbfde714d9286f3b3d602af32219835f27ee60
--- /dev/null
+++ b/third_party/sqlite/src/test/tkt3871.test
@@ -0,0 +1,53 @@
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+ifcapable !vtab {
+ finish_test
+ return
+}
+
+register_echo_module [sqlite3_connection_pointer db]
+
+do_test tkt3871-1.1 {
+ execsql {
+ BEGIN;
+ CREATE TABLE t1(a PRIMARY KEY, b UNIQUE);
+ }
+ for {set i 0} {$i < 500} {incr i} {
+ execsql { INSERT INTO t1 VALUES($i, $i*$i) }
+ }
+ execsql COMMIT
+ execsql {
+ CREATE VIRTUAL TABLE e USING echo(t1);
+ SELECT count(*) FROM e;
+ }
+} {500}
+
+do_test tkt3871-1.2 {
+ execsql { SELECT * FROM e WHERE a = 1 OR a = 2 }
+} {1 1 2 4}
+do_test tkt3871-1.3 {
+ set echo_module ""
+ execsql { SELECT * FROM e WHERE a = 1 OR a = 2 }
+ set echo_module
+} [list \
+ xFilter {SELECT rowid, * FROM 't1' WHERE a = ?} 1 \
+ xFilter {SELECT rowid, * FROM 't1' WHERE a = ?} 2 \
+]
+
+do_test tkt3871-1.4 {
+ execsql { SELECT * FROM e WHERE a = 1 OR a = 2 OR b = 9 }
+} {1 1 2 4 3 9}
+do_test tkt3871-1.5 {
+ set echo_module ""
+ execsql { SELECT * FROM e WHERE a = 1 OR a = 2 OR b = 9 }
+ set echo_module
+} [list \
+ xFilter {SELECT rowid, * FROM 't1' WHERE a = ?} 1 \
+ xFilter {SELECT rowid, * FROM 't1' WHERE a = ?} 2 \
+ xFilter {SELECT rowid, * FROM 't1' WHERE b = ?} 9
+]
+
+
+finish_test
« no previous file with comments | « third_party/sqlite/src/test/tkt3841.test ('k') | third_party/sqlite/src/test/tkt3879.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698