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

Unified Diff: third_party/sqlite/src/test/collate2.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
« no previous file with comments | « third_party/sqlite/src/test/collate1.test ('k') | third_party/sqlite/src/test/collate3.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/collate2.test
diff --git a/third_party/sqlite/src/test/collate2.test b/third_party/sqlite/src/test/collate2.test
index bf619231da1ff4d3f1eac981a0ee39332cb9216d..d5aadb4eb56811f03cc4df480c1186f642c7bdd0 100644
--- a/third_party/sqlite/src/test/collate2.test
+++ b/third_party/sqlite/src/test/collate2.test
@@ -17,6 +17,8 @@
set testdir [file dirname $argv0]
source $testdir/tester.tcl
+set ::testprefix collate2
+
#
# Tests are organised as follows:
#
@@ -636,13 +638,15 @@ do_test collate2-4.2 {
do_test collate2-4.3 {
execsql {
SELECT collate2t1.a FROM collate2t1, collate2t3
- WHERE collate2t1.b = collate2t3.b||'';
+ WHERE collate2t1.b = collate2t3.b||''
+ ORDER BY +collate2t1.a DESC;
}
} {aa aA Aa AA}
do_test collate2-4.4 {
execsql {
SELECT collate2t1.a FROM collate2t1, collate2t3
- WHERE collate2t3.b||'' = collate2t1.b;
+ WHERE collate2t3.b||'' = collate2t1.b
+ ORDER BY +collate2t1.a DESC;
}
} {aa aA Aa AA}
@@ -691,4 +695,30 @@ do_test collate2-5.5 {
}
} {aa aa}
+do_execsql_test 6.1 {
+ CREATE TABLE t1(x);
+ INSERT INTO t1 VALUES('b');
+ INSERT INTO t1 VALUES('B');
+}
+do_execsql_test 6.2 {
+ SELECT * FROM t1 WHERE x COLLATE nocase BETWEEN 'a' AND 'c';
+} {b B}
+do_execsql_test 6.3 {
+ SELECT * FROM t1 WHERE x BETWEEN 'a' COLLATE nocase AND 'c' COLLATE nocase;
+} {b B}
+do_execsql_test 6.4 {
+ SELECT * FROM t1
+ WHERE x COLLATE nocase BETWEEN 'a' COLLATE nocase AND 'c' COLLATE nocase;
+} {b B}
+do_execsql_test 6.5 {
+ SELECT * FROM t1 WHERE +x COLLATE nocase BETWEEN 'a' AND 'c';
+} {b B}
+do_execsql_test 6.6 {
+ SELECT * FROM t1 WHERE +x BETWEEN 'a' COLLATE nocase AND 'c' COLLATE nocase;
+} {b B}
+do_execsql_test 6.7 {
+ SELECT * FROM t1
+ WHERE +x COLLATE nocase BETWEEN 'a' COLLATE nocase AND 'c' COLLATE nocase;
+} {b B}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/collate1.test ('k') | third_party/sqlite/src/test/collate3.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698