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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/close.test ('k') | third_party/sqlite/src/test/conflict.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # 2016-07-01
2 #
3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
5 #
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
9 #
10 #***********************************************************************
11 # Test cases for a crash bug.
12 #
13
14 set testdir [file dirname $argv0]
15 source $testdir/tester.tcl
16
17 do_execsql_test collateB-1.1 {
18 CREATE TABLE t1(a INTEGER PRIMARY KEY);
19 CREATE TABLE t2(b INTEGER PRIMARY KEY, x1 INT COLLATE NOCASE);
20 CREATE TABLE t3(x2 INT);
21 SELECT * FROM t3, t2, t1 WHERE x2=b AND x1=a AND a=1;
22 } {}
23 do_execsql_test collateB-1.2 {
24 INSERT INTO t1(a) VALUES(1),(2),(3);
25 INSERT INTO t2(b,x1) VALUES(11,1),(22,2),(33,3);
26 INSERT INTO t3(x2) VALUES(11),(22),(33);
27 SELECT *,'|' FROM t3, t2, t1 WHERE x2=b AND x1=a AND a=1;
28 } {11 11 1 1 |}
29 do_execsql_test collateB-1.3 {
30 SELECT *,'|' FROM t3, t1, t2 WHERE x2=b AND x1=a AND a=1;
31 } {11 1 11 1 |}
32 do_execsql_test collateB-1.4 {
33 SELECT *,'|' FROM t2, t3, t1 WHERE x2=b AND x1=a AND a=1;
34 } {11 1 11 1 |}
35 do_execsql_test collateB-1.5 {
36 SELECT *,'|' FROM t2, t1, t3 WHERE x2=b AND x1=a AND a=1;
37 } {11 1 1 11 |}
38 do_execsql_test collateB-1.6 {
39 SELECT *,'|' FROM t1, t2, t3 WHERE x2=b AND x1=a AND a=1;
40 } {1 11 1 11 |}
41 do_execsql_test collateB-1.7 {
42 SELECT *,'|' FROM t1, t2, t3 WHERE x2=b AND x1=a AND a=1;
43 } {1 11 1 11 |}
44 do_execsql_test collateB-1.12 {
45 SELECT *,'|' FROM t3, t2, t1 WHERE b=x2 AND a=x1 AND 1=a;
46 } {11 11 1 1 |}
47 do_execsql_test collateB-1.13 {
48 SELECT *,'|' FROM t3, t1, t2 WHERE b=x2 AND a=x1 AND 1=a;
49 } {11 1 11 1 |}
50 do_execsql_test collateB-1.14 {
51 SELECT *,'|' FROM t2, t3, t1 WHERE b=x2 AND a=x1 AND 1=a;
52 } {11 1 11 1 |}
53 do_execsql_test collateB-1.15 {
54 SELECT *,'|' FROM t2, t1, t3 WHERE b=x2 AND a=x1 AND 1=a;
55 } {11 1 1 11 |}
56 do_execsql_test collateB-1.16 {
57 SELECT *,'|' FROM t1, t2, t3 WHERE b=x2 AND a=x1 AND 1=a;
58 } {1 11 1 11 |}
59 do_execsql_test collateB-1.17 {
60 SELECT *,'|' FROM t1, t2, t3 WHERE b=x2 AND a=x1 AND 1=a;
61 } {1 11 1 11 |}
62
63 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/close.test ('k') | third_party/sqlite/src/test/conflict.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698