Add test cases to verify that ticket #3314 has been fixed. (CVS 5579)

FossilOrigin-Name: b46267ff07f9b967bb7aee16b6d9dd8d0bd23f0c
This commit is contained in:
drh
2008-08-21 14:24:29 +00:00
parent 6a012f04d5
commit 74073b6da8
3 changed files with 26 additions and 8 deletions
+19 -1
View File
@@ -17,7 +17,7 @@
# explicit sort order and explicit collating secquites) and
# with and without optional LIMIT and OFFSET clauses.
#
# $Id: selectA.test,v 1.5 2008/08/04 03:51:24 danielk1977 Exp $
# $Id: selectA.test,v 1.6 2008/08/21 14:24:29 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -68,6 +68,18 @@ do_test selectA-2.1 {
ORDER BY a,b,c
}
} {{} C c {} U u -23 Y y 1 a a 9.9 b B 5200000.0 X x hello d D mad Z z abc e e hare m M}
do_test selectA-2.1.1 { # Ticket #3314
execsql {
SELECT t1.a, t1.b, t1.c FROM t1 UNION ALL SELECT x,y,z FROM t2
ORDER BY a,b,c
}
} {{} C c {} U u -23 Y y 1 a a 9.9 b B 5200000.0 X x hello d D mad Z z abc e e hare m M}
do_test selectA-2.1.2 { # Ticket #3314
execsql {
SELECT a,b,c FROM t1 UNION ALL SELECT x,y,z FROM t2
ORDER BY t1.a, t1.b, t1.c
}
} {{} C c {} U u -23 Y y 1 a a 9.9 b B 5200000.0 X x hello d D mad Z z abc e e hare m M}
do_test selectA-2.2 {
execsql {
SELECT a,b,c FROM t1 UNION ALL SELECT x,y,z FROM t2
@@ -674,6 +686,12 @@ do_test selectA-3.1 {
ORDER BY a,b,c
}
} {{} C c {} U u -23 Y y 1 a a 9.9 b B 5200000.0 X x hello d D mad Z z abc e e hare m M}
do_test selectA-3.1.1 { # Ticket #3314
execsql {
SELECT t1.a,b,t1.c FROM t1 UNION ALL SELECT x,y,z FROM t2
ORDER BY a,t1.b,t1.c
}
} {{} C c {} U u -23 Y y 1 a a 9.9 b B 5200000.0 X x hello d D mad Z z abc e e hare m M}
do_test selectA-3.2 {
execsql {
SELECT a,b,c FROM t1 UNION ALL SELECT x,y,z FROM t2