3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this file is testing ORDER BY and LIMIT on tables with
15 # These tests verify that ticket [f97c4637102a3ae72b7911167e1d4da12ce60722]
16 # from 2015-01-19 has been fixed.
19 set testdir [file dirname $argv0]
20 source $testdir/tester.tcl
21 set ::testprefix orderby8
26 INSERT INTO t1(x) VALUES(1),(5),(9),(7),(3),(2),(4),(6),(8);
30 for {set i 1} {$i<200} {incr i} {
31 append ::result_set ", x+$i"
34 db eval "SELECT $::result_set FROM t1 ORDER BY x LIMIT -1" {