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

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

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. 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 unified diff | Download patch
OLDNEW
1 # 2008 October 20 1 # 2008 October 20
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 44
45 # These tests perform an EXPLAIN QUERY PLAN on both versions of the 45 # These tests perform an EXPLAIN QUERY PLAN on both versions of the
46 # SELECT referenced in ticket #3442 (both '5000' and "5000") 46 # SELECT referenced in ticket #3442 (both '5000' and "5000")
47 # and verify that the query plan is the same. 47 # and verify that the query plan is the same.
48 # 48 #
49 ifcapable explain { 49 ifcapable explain {
50 do_test tkt3442-1.2 { 50 do_test tkt3442-1.2 {
51 EQP { SELECT node FROM listhash WHERE id='5000' LIMIT 1; } 51 EQP { SELECT node FROM listhash WHERE id='5000' LIMIT 1; }
52 } {0 0 0 {SEARCH TABLE listhash USING INDEX ididx (id=?) (~1 rows)}} 52 } {0 0 0 {SEARCH TABLE listhash USING INDEX ididx (id=?)}}
53 do_test tkt3442-1.3 { 53 do_test tkt3442-1.3 {
54 EQP { SELECT node FROM listhash WHERE id="5000" LIMIT 1; } 54 EQP { SELECT node FROM listhash WHERE id="5000" LIMIT 1; }
55 } {0 0 0 {SEARCH TABLE listhash USING INDEX ididx (id=?) (~1 rows)}} 55 } {0 0 0 {SEARCH TABLE listhash USING INDEX ididx (id=?)}}
56 } 56 }
57 57
58 58
59 # Some extra tests testing other permutations of 5000. 59 # Some extra tests testing other permutations of 5000.
60 # 60 #
61 ifcapable explain { 61 ifcapable explain {
62 do_test tkt3442-1.4 { 62 do_test tkt3442-1.4 {
63 EQP { SELECT node FROM listhash WHERE id=5000 LIMIT 1; } 63 EQP { SELECT node FROM listhash WHERE id=5000 LIMIT 1; }
64 } {0 0 0 {SEARCH TABLE listhash USING INDEX ididx (id=?) (~1 rows)}} 64 } {0 0 0 {SEARCH TABLE listhash USING INDEX ididx (id=?)}}
65 } 65 }
66 do_test tkt3442-1.5 { 66 do_test tkt3442-1.5 {
67 catchsql { 67 catchsql {
68 SELECT node FROM listhash WHERE id=[5000] LIMIT 1; 68 SELECT node FROM listhash WHERE id=[5000] LIMIT 1;
69 } 69 }
70 } {1 {no such column: 5000}} 70 } {1 {no such column: 5000}}
71 71
72 finish_test 72 finish_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698