| OLD | NEW |
| 1 # 2010 October 6 | 1 # 2010 October 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 #*********************************************************************** |
| 11 # This file implements regression tests for SQLite library. Specifically, | 11 # This file implements regression tests for SQLite library. Specifically, |
| 12 # it tests that ticket [38cb5df375078d3f9711482d2a1615d09f6b3f33] has | 12 # it tests that ticket [38cb5df375078d3f9711482d2a1615d09f6b3f33] has |
| 13 # been resolved. | 13 # been resolved. |
| 14 # | 14 # |
| 15 | 15 |
| 16 set testdir [file dirname $argv0] | 16 set testdir [file dirname $argv0] |
| 17 source $testdir/tester.tcl | 17 source $testdir/tester.tcl |
| 18 | 18 |
| 19 ifcapable !compound { |
| 20 finish_test |
| 21 return |
| 22 } |
| 23 |
| 19 do_test tkt-38cb5df375.0 { | 24 do_test tkt-38cb5df375.0 { |
| 20 execsql { | 25 execsql { |
| 21 CREATE TABLE t1(a); | 26 CREATE TABLE t1(a); |
| 22 INSERT INTO t1 VALUES(1); | 27 INSERT INTO t1 VALUES(1); |
| 23 INSERT INTO t1 VALUES(2); | 28 INSERT INTO t1 VALUES(2); |
| 24 INSERT INTO t1 SELECT a+2 FROM t1; | 29 INSERT INTO t1 SELECT a+2 FROM t1; |
| 25 INSERT INTO t1 SELECT a+4 FROM t1; | 30 INSERT INTO t1 SELECT a+4 FROM t1; |
| 26 } | 31 } |
| 27 } {} | 32 } {} |
| 28 | 33 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 SELECT a FROM (SELECT * FROM t1 ORDER BY a) | 317 SELECT a FROM (SELECT * FROM t1 ORDER BY a) |
| 313 EXCEPT SELECT a FROM (SELECT a FROM t1 ORDER BY a LIMIT $::ii) | 318 EXCEPT SELECT a FROM (SELECT a FROM t1 ORDER BY a LIMIT $::ii) |
| 314 ORDER BY a DESC | 319 ORDER BY a DESC |
| 315 LIMIT $::jj; | 320 LIMIT $::jj; |
| 316 } | 321 } |
| 317 } [lrange {8 7 6 5 4 3 2 1} 0 [expr {$jj-1}]] | 322 } [lrange {8 7 6 5 4 3 2 1} 0 [expr {$jj-1}]] |
| 318 } | 323 } |
| 319 | 324 |
| 320 | 325 |
| 321 finish_test | 326 finish_test |
| OLD | NEW |