sl@0
|
1 |
# 2005 November 16
|
sl@0
|
2 |
#
|
sl@0
|
3 |
# The author disclaims copyright to this source code. In place of
|
sl@0
|
4 |
# a legal notice, here is a blessing:
|
sl@0
|
5 |
#
|
sl@0
|
6 |
# May you do good and not evil.
|
sl@0
|
7 |
# May you find forgiveness for yourself and forgive others.
|
sl@0
|
8 |
# May you share freely, never taking more than you give.
|
sl@0
|
9 |
#
|
sl@0
|
10 |
#***********************************************************************
|
sl@0
|
11 |
# This file implements regression tests for SQLite library.
|
sl@0
|
12 |
#
|
sl@0
|
13 |
# This file implements tests to verify that ticket #1501 is
|
sl@0
|
14 |
# fixed.
|
sl@0
|
15 |
#
|
sl@0
|
16 |
|
sl@0
|
17 |
set testdir [file dirname $argv0]
|
sl@0
|
18 |
source $testdir/tester.tcl
|
sl@0
|
19 |
|
sl@0
|
20 |
ifcapable !compound {
|
sl@0
|
21 |
finish_test
|
sl@0
|
22 |
return
|
sl@0
|
23 |
}
|
sl@0
|
24 |
|
sl@0
|
25 |
do_test tkt1501-1.1 {
|
sl@0
|
26 |
execsql {
|
sl@0
|
27 |
CREATE TABLE t1(a,b);
|
sl@0
|
28 |
INSERT INTO t1 VALUES(1,2);
|
sl@0
|
29 |
SELECT a, b, 'abc' FROM t1
|
sl@0
|
30 |
UNION
|
sl@0
|
31 |
SELECT b, a, 'xyz' FROM t1
|
sl@0
|
32 |
ORDER BY 2, 3;
|
sl@0
|
33 |
}
|
sl@0
|
34 |
} {2 1 xyz 1 2 abc}
|
sl@0
|
35 |
|
sl@0
|
36 |
finish_test
|