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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/whereD.test ('k') | third_party/sqlite/src/test/whereJ.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 # 2013-09-05 1 # 2013-09-05
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 do_eqp_test 5.3.1 { 223 do_eqp_test 5.3.1 {
224 SELECT * FROM t1 WHERE a=? 224 SELECT * FROM t1 WHERE a=?
225 } {0 0 0 {SEARCH TABLE t1 USING INDEX i1 (a=?)}} 225 } {0 0 0 {SEARCH TABLE t1 USING INDEX i1 (a=?)}}
226 do_eqp_test 5.3.2 { 226 do_eqp_test 5.3.2 {
227 SELECT * FROM t1 WHERE likelihood(a=?, 0.9) 227 SELECT * FROM t1 WHERE likelihood(a=?, 0.9)
228 } {0 0 0 {SCAN TABLE t1}} 228 } {0 0 0 {SCAN TABLE t1}}
229 do_eqp_test 5.3.3 { 229 do_eqp_test 5.3.3 {
230 SELECT * FROM t1 WHERE likely(a=?) 230 SELECT * FROM t1 WHERE likely(a=?)
231 } {0 0 0 {SCAN TABLE t1}} 231 } {0 0 0 {SCAN TABLE t1}}
232 232
233 # 2015-06-18
234 # Ticket [https://www.sqlite.org/see/tktview/472f0742a1868fb58862bc588ed70]
235 #
236 do_execsql_test 6.0 {
237 DROP TABLE IF EXISTS t1;
238 CREATE TABLE t1(i int, x, y, z);
239 INSERT INTO t1 VALUES (1,1,1,1), (2,2,2,2), (3,3,3,3), (4,4,4,4);
240 DROP TABLE IF EXISTS t2;
241 CREATE TABLE t2(i int, bool char);
242 INSERT INTO t2 VALUES(1,'T'), (2,'F');
243 SELECT count(*) FROM t1 LEFT JOIN t2 ON t1.i=t2.i AND bool='T';
244 SELECT count(*) FROM t1 LEFT JOIN t2 ON likely(t1.i=t2.i) AND bool='T';
245 } {4 4}
246
247 # 2015-06-20
248 # Crash discovered by AFL
249 #
250 do_execsql_test 7.0 {
251 DROP TABLE IF EXISTS t1;
252 CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
253 INSERT INTO t1 VALUES(9,1),(1,2);
254 DROP TABLE IF EXISTS t2;
255 CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
256 INSERT INTO t2 VALUES(3,3),(4,4);
257 SELECT likely(a), x FROM t1, t2 ORDER BY 1, 2;
258 } {1 3 1 4 9 3 9 4}
259 do_execsql_test 7.1 {
260 SELECT unlikely(a), x FROM t1, t2 ORDER BY 1, 2;
261 } {1 3 1 4 9 3 9 4}
262 do_execsql_test 7.2 {
263 SELECT likelihood(a,0.5), x FROM t1, t2 ORDER BY 1, 2;
264 } {1 3 1 4 9 3 9 4}
265 do_execsql_test 7.3 {
266 SELECT coalesce(a,a), x FROM t1, t2 ORDER BY 1, 2;
267 } {1 3 1 4 9 3 9 4}
268
269
233 finish_test 270 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/whereD.test ('k') | third_party/sqlite/src/test/whereJ.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698