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

Side by Side Diff: third_party/sqlite/src/test/select2.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/securedel.test ('k') | third_party/sqlite/src/test/select6.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 # 2001 September 15 1 # 2001 September 15
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 INSERT INTO aa VALUES(1); 146 INSERT INTO aa VALUES(1);
147 INSERT INTO aa VALUES(3); 147 INSERT INTO aa VALUES(3);
148 INSERT INTO bb VALUES(2); 148 INSERT INTO bb VALUES(2);
149 INSERT INTO bb VALUES(4); 149 INSERT INTO bb VALUES(4);
150 SELECT * FROM aa, bb WHERE max(a,b)>2; 150 SELECT * FROM aa, bb WHERE max(a,b)>2;
151 } 151 }
152 } {1 4 3 2 3 4} 152 } {1 4 3 2 3 4}
153 do_test select2-4.2 { 153 do_test select2-4.2 {
154 execsql { 154 execsql {
155 INSERT INTO bb VALUES(0); 155 INSERT INTO bb VALUES(0);
156 SELECT * FROM aa, bb WHERE b; 156 SELECT * FROM aa CROSS JOIN bb WHERE b;
157 } 157 }
158 } {1 2 1 4 3 2 3 4} 158 } {1 2 1 4 3 2 3 4}
159 do_test select2-4.3 { 159 do_test select2-4.3 {
160 execsql { 160 execsql {
161 SELECT * FROM aa, bb WHERE NOT b; 161 SELECT * FROM aa CROSS JOIN bb WHERE NOT b;
162 } 162 }
163 } {1 0 3 0} 163 } {1 0 3 0}
164 do_test select2-4.4 { 164 do_test select2-4.4 {
165 execsql { 165 execsql {
166 SELECT * FROM aa, bb WHERE min(a,b); 166 SELECT * FROM aa, bb WHERE min(a,b);
167 } 167 }
168 } {1 2 1 4 3 2 3 4} 168 } {1 2 1 4 3 2 3 4}
169 do_test select2-4.5 { 169 do_test select2-4.5 {
170 execsql { 170 execsql {
171 SELECT * FROM aa, bb WHERE NOT min(a,b); 171 SELECT * FROM aa, bb WHERE NOT min(a,b);
172 } 172 }
173 } {1 0 3 0} 173 } {1 0 3 0}
174 do_test select2-4.6 { 174 do_test select2-4.6 {
175 execsql { 175 execsql {
176 SELECT * FROM aa, bb WHERE CASE WHEN a=b-1 THEN 1 END; 176 SELECT * FROM aa, bb WHERE CASE WHEN a=b-1 THEN 1 END;
177 } 177 }
178 } {1 2 3 4} 178 } {1 2 3 4}
179 do_test select2-4.7 { 179 do_test select2-4.7 {
180 execsql { 180 execsql {
181 SELECT * FROM aa, bb WHERE CASE WHEN a=b-1 THEN 0 ELSE 1 END; 181 SELECT * FROM aa, bb WHERE CASE WHEN a=b-1 THEN 0 ELSE 1 END;
182 } 182 }
183 } {1 4 1 0 3 2 3 0} 183 } {1 4 1 0 3 2 3 0}
184 184
185 finish_test 185 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/securedel.test ('k') | third_party/sqlite/src/test/select6.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698