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

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

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/tkt3810.test ('k') | third_party/sqlite/src/test/tkt3832.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2009 April 24 1 # 2009 April 24
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #*********************************************************************** 10 #***********************************************************************
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } {5 9 sort} 65 } {5 9 sort}
66 do_test tkt3824-2.2 { 66 do_test tkt3824-2.2 {
67 execsql_status { 67 execsql_status {
68 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b, a; 68 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b, a;
69 } 69 }
70 } {5 9 sort} 70 } {5 9 sort}
71 do_test tkt3824-2.3 { 71 do_test tkt3824-2.3 {
72 lsort [execsql_status { 72 lsort [execsql_status {
73 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b; 73 SELECT a FROM t2 WHERE b=2 AND c IS NULL ORDER BY b;
74 }] 74 }]
75 } {5 9 sort} 75 } {5 9 nosort}
76 76
77 do_test tkt3824-3.1 { 77 do_test tkt3824-3.1 {
78 db eval { 78 db eval {
79 CREATE TABLE t3(x,y); 79 CREATE TABLE t3(x,y);
80 INSERT INTO t3 SELECT a, b FROM t1; 80 INSERT INTO t3 SELECT a, b FROM t1;
81 INSERT INTO t3 VALUES(234,567); 81 INSERT INTO t3 VALUES(234,567);
82 CREATE UNIQUE INDEX t3y ON t3(y); 82 CREATE UNIQUE INDEX t3y ON t3(y);
83 DELETE FROM t3 WHERE y IS NULL; 83 DELETE FROM t3 WHERE y IS NULL;
84 SELECT * FROM t3; 84 SELECT * FROM t3;
85 } 85 }
86 } {234 567} 86 } {234 567}
87 87
88 do_test tkt3824-4.1 { 88 do_test tkt3824-4.1 {
89 db eval { 89 db eval {
90 CREATE TABLE t4(x,y); 90 CREATE TABLE t4(x,y);
91 INSERT INTO t4 SELECT a, b FROM t1; 91 INSERT INTO t4 SELECT a, b FROM t1;
92 INSERT INTO t4 VALUES(234,567); 92 INSERT INTO t4 VALUES(234,567);
93 CREATE UNIQUE INDEX t4y ON t4(y); 93 CREATE UNIQUE INDEX t4y ON t4(y);
94 UPDATE t4 SET rowid=rowid+100 WHERE y IS NULL; 94 UPDATE t4 SET rowid=rowid+100 WHERE y IS NULL;
95 SELECT rowid, x FROM t4 ORDER BY rowid; 95 SELECT rowid, x FROM t4 ORDER BY rowid;
96 } 96 }
97 } {6 234 101 1 102 9 103 5 104 123 105 -10} 97 } {6 234 101 1 102 9 103 5 104 123 105 -10}
98 98
99 finish_test 99 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/tkt3810.test ('k') | third_party/sqlite/src/test/tkt3832.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698