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

Unified Diff: third_party/sqlite/sqlite-src-3070603/test/tkt3581.test

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
Index: third_party/sqlite/sqlite-src-3070603/test/tkt3581.test
diff --git a/third_party/sqlite/sqlite-src-3070603/test/tkt3581.test b/third_party/sqlite/sqlite-src-3070603/test/tkt3581.test
new file mode 100644
index 0000000000000000000000000000000000000000..e9b18fd9f496c31a0ef221807aca73d35a756f02
--- /dev/null
+++ b/third_party/sqlite/sqlite-src-3070603/test/tkt3581.test
@@ -0,0 +1,54 @@
+# 2008 January 13
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+# This file implements regression tests for SQLite library.
+#
+# This file implements tests to verify that ticket #3581 has been
+# fixed.
+#
+# $Id: tkt3581.test,v 1.1 2009/01/14 01:10:40 drh Exp $
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+do_test tkt3581-1.1 {
+ db eval {
+ CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
+ INSERT INTO t1 VALUES(0,544,846);
+ INSERT INTO t1 VALUES(1,345,51);
+ CREATE TABLE t2(a INTEGER PRIMARY KEY, b, c);
+ INSERT INTO t2 SELECT * FROM t1;
+ CREATE INDEX i2 on t2(c);
+ }
+} {}
+
+do_test tkt3581-1.2 {
+ db eval {
+ SELECT a FROM t1
+ WHERE (b > 45 AND c < 356)
+ OR b <= 733
+ OR b >= 557
+ OR (b >= 614 AND c < 251)
+ ORDER BY b;
+ }
+} {1 0}
+
+do_test tkt3581-1.3 {
+ db eval {
+ SELECT a FROM t2
+ WHERE (b > 45 AND c < 356)
+ OR b <= 733
+ OR b >= 557
+ OR (b >= 614 AND c < 251)
+ ORDER BY b;
+ }
+} {1 0}
+
+finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3070603/test/tkt3554.test ('k') | third_party/sqlite/sqlite-src-3070603/test/tkt35xx.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698