| OLD | NEW |
| 1 # 2001 September 15 | 1 # 2001 September 15 |
| 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 WHERE e.r=f.z | 451 WHERE e.r=f.z |
| 452 } | 452 } |
| 453 } {1} | 453 } {1} |
| 454 } ;# ifcapable view | 454 } ;# ifcapable view |
| 455 | 455 |
| 456 # Ticket #1634 | 456 # Ticket #1634 |
| 457 # | 457 # |
| 458 do_test select6-9.1 { | 458 do_test select6-9.1 { |
| 459 execsql { | 459 execsql { |
| 460 SELECT a.x, b.x FROM t1 AS a, (SELECT x FROM t1 LIMIT 2) AS b | 460 SELECT a.x, b.x FROM t1 AS a, (SELECT x FROM t1 LIMIT 2) AS b |
| 461 ORDER BY 1, 2 |
| 461 } | 462 } |
| 462 } {1 1 1 2 2 1 2 2 3 1 3 2 4 1 4 2} | 463 } {1 1 1 2 2 1 2 2 3 1 3 2 4 1 4 2} |
| 463 do_test select6-9.2 { | 464 do_test select6-9.2 { |
| 464 execsql { | 465 execsql { |
| 465 SELECT x FROM (SELECT x FROM t1 LIMIT 2); | 466 SELECT x FROM (SELECT x FROM t1 LIMIT 2); |
| 466 } | 467 } |
| 467 } {1 2} | 468 } {1 2} |
| 468 do_test select6-9.3 { | 469 do_test select6-9.3 { |
| 469 execsql { | 470 execsql { |
| 470 SELECT x FROM (SELECT x FROM t1 LIMIT 2 OFFSET 1); | 471 SELECT x FROM (SELECT x FROM t1 LIMIT 2 OFFSET 1); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 } {2 12 3 13 4 14} | 508 } {2 12 3 13 4 14} |
| 508 do_test select6-9.11 { | 509 do_test select6-9.11 { |
| 509 execsql { | 510 execsql { |
| 510 SELECT x, y FROM (SELECT x, (SELECT 10)+x y FROM t1 LIMIT -1 OFFSET 1); | 511 SELECT x, y FROM (SELECT x, (SELECT 10)+x y FROM t1 LIMIT -1 OFFSET 1); |
| 511 } | 512 } |
| 512 } {2 12 3 13 4 14} | 513 } {2 12 3 13 4 14} |
| 513 | 514 |
| 514 | 515 |
| 515 | 516 |
| 516 finish_test | 517 finish_test |
| OLD | NEW |