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

Side by Side Diff: third_party/sqlite/src/test/limit.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/like3.test ('k') | third_party/sqlite/src/test/lock.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 November 6 1 # 2001 November 6
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 } {} 244 } {}
245 do_test limit-6.8 { 245 do_test limit-6.8 {
246 execsql { 246 execsql {
247 SELECT * FROM t6 LIMIT 0 OFFSET 1 247 SELECT * FROM t6 LIMIT 0 OFFSET 1
248 } 248 }
249 } {} 249 } {}
250 250
251 # Make sure LIMIT works well with compound SELECT statements. 251 # Make sure LIMIT works well with compound SELECT statements.
252 # Ticket #393 252 # Ticket #393
253 # 253 #
254 # EVIDENCE-OF: R-13512-64012 In a compound SELECT, only the last or
255 # right-most simple SELECT may contain a LIMIT clause.
256 #
257 # EVIDENCE-OF: R-03782-50113 In a compound SELECT, the LIMIT clause
258 # applies to the entire compound, not just the final SELECT.
259 #
254 ifcapable compound { 260 ifcapable compound {
255 do_test limit-7.1.1 { 261 do_test limit-7.1.1 {
256 catchsql { 262 catchsql {
257 SELECT x FROM t2 LIMIT 5 UNION ALL SELECT a FROM t6; 263 SELECT x FROM t2 LIMIT 5 UNION ALL SELECT a FROM t6;
258 } 264 }
259 } {1 {LIMIT clause should come after UNION ALL not before}} 265 } {1 {LIMIT clause should come after UNION ALL not before}}
260 do_test limit-7.1.2 { 266 do_test limit-7.1.2 {
261 catchsql { 267 catchsql {
262 SELECT x FROM t2 LIMIT 5 UNION SELECT a FROM t6; 268 SELECT x FROM t2 LIMIT 5 UNION SELECT a FROM t6;
263 } 269 }
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 } {} 636 } {}
631 do_execsql_test limit-14.6 { 637 do_execsql_test limit-14.6 {
632 SELECT 123 LIMIT -1 OFFSET 0 638 SELECT 123 LIMIT -1 OFFSET 0
633 } {123} 639 } {123}
634 do_execsql_test limit-14.7 { 640 do_execsql_test limit-14.7 {
635 SELECT 123 LIMIT -1 OFFSET 1 641 SELECT 123 LIMIT -1 OFFSET 1
636 } {} 642 } {}
637 643
638 644
639 finish_test 645 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/like3.test ('k') | third_party/sqlite/src/test/lock.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698