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

Side by Side Diff: third_party/sqlite/src/test/e_select.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/e_fkey.test ('k') | third_party/sqlite/src/test/e_uri.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 # 2010 July 16 1 # 2010 July 16
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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 4.2 "SELECT DISTINCT x FROM h1, h2 ON (x=b)" {One Four} 1245 4.2 "SELECT DISTINCT x FROM h1, h2 ON (x=b)" {One Four}
1246 } 1246 }
1247 1247
1248 # EVIDENCE-OF: R-02054-15343 For the purposes of detecting duplicate 1248 # EVIDENCE-OF: R-02054-15343 For the purposes of detecting duplicate
1249 # rows, two NULL values are considered to be equal. 1249 # rows, two NULL values are considered to be equal.
1250 # 1250 #
1251 do_select_tests e_select-5.5 { 1251 do_select_tests e_select-5.5 {
1252 1 "SELECT DISTINCT d FROM h3" {{} 2 2,3 2,4 3} 1252 1 "SELECT DISTINCT d FROM h3" {{} 2 2,3 2,4 3}
1253 } 1253 }
1254 1254
1255 # EVIDENCE-OF: R-58359-52112 The normal rules for selecting a collation 1255 # EVIDENCE-OF: R-47709-27231 The usual rules apply for selecting a
1256 # sequence to compare text values with apply. 1256 # collation sequence to compare text values.
1257 # 1257 #
1258 do_select_tests e_select-5.6 { 1258 do_select_tests e_select-5.6 {
1259 1 "SELECT DISTINCT b FROM h1" {one I i four IV iv} 1259 1 "SELECT DISTINCT b FROM h1" {one I i four IV iv}
1260 2 "SELECT DISTINCT b COLLATE nocase FROM h1" {one I four IV} 1260 2 "SELECT DISTINCT b COLLATE nocase FROM h1" {one I four IV}
1261 3 "SELECT DISTINCT x FROM h2" {One Two Three Four} 1261 3 "SELECT DISTINCT x FROM h2" {One Two Three Four}
1262 4 "SELECT DISTINCT x COLLATE binary FROM h2" { 1262 4 "SELECT DISTINCT x COLLATE binary FROM h2" {
1263 One Two Three Four one two three four 1263 One Two Three Four one two three four
1264 } 1264 }
1265 } 1265 }
1266 1266
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 2166
2167 8 { SELECT b FROM f1 ORDER BY a LIMIT 20, 10 } {u v w x y z} 2167 8 { SELECT b FROM f1 ORDER BY a LIMIT 20, 10 } {u v w x y z}
2168 9 { SELECT a FROM f1 ORDER BY a DESC LIMIT 18+4, 100 } {4 3 2 1} 2168 9 { SELECT a FROM f1 ORDER BY a DESC LIMIT 18+4, 100 } {4 3 2 1}
2169 2169
2170 10 { SELECT b FROM f1 ORDER BY a LIMIT -1, 5 } {a b c d e} 2170 10 { SELECT b FROM f1 ORDER BY a LIMIT -1, 5 } {a b c d e}
2171 11 { SELECT b FROM f1 ORDER BY a LIMIT -500, 5 } {a b c d e} 2171 11 { SELECT b FROM f1 ORDER BY a LIMIT -500, 5 } {a b c d e}
2172 12 { SELECT b FROM f1 ORDER BY a LIMIT 0, 5 } {a b c d e} 2172 12 { SELECT b FROM f1 ORDER BY a LIMIT 0, 5 } {a b c d e}
2173 } 2173 }
2174 2174
2175 finish_test 2175 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/e_fkey.test ('k') | third_party/sqlite/src/test/e_uri.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698