Optimizations and refinements. Improvements to test coverage. (CVS 2667)

FossilOrigin-Name: 7283f7c29db4f622380b6a5cb745a4dc0c8e6a25
This commit is contained in:
drh
2005-09-08 01:58:42 +00:00
parent 5360ad34b1
commit 9d2985c7b4
8 changed files with 72 additions and 50 deletions
+8 -1
View File
@@ -13,7 +13,7 @@
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc4.test,v 1.18 2005/09/07 22:48:16 drh Exp $
# $Id: misc4.test,v 1.19 2005/09/08 01:58:43 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -100,6 +100,13 @@ do_test misc4-3.1 {
ORDER BY 1, 2;
}
} {1 x 1 z}
do_test misc4-3.2 {
catchsql {
SELECT ID, Value FROM Table1
UNION SELECT ID, max(Value) FROM Table2 GROUP BY 1, 2
ORDER BY 1, 2;
}
} {1 {aggregate functions are not allowed in the GROUP BY clause}}
} ;# ifcapable compound
# Ticket #1047. Make sure column types are preserved in subqueries.