1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Reinsert code deleted by (1998) that we thought was unused but was in fact

needed.  Fix for ticket #966. (CVS 2025)

FossilOrigin-Name: 370ca539506a431dbe77dcb644215886760f34e9
This commit is contained in:
drh
2004-10-19 16:40:59 +00:00
parent 63afe89499
commit 6138df56e7
4 changed files with 39 additions and 11 deletions

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.6 2004/07/24 17:38:30 drh Exp $
# $Id: misc4.test,v 1.7 2004/10/19 16:40:59 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -82,5 +82,20 @@ do_test misc4-2.4 {
}
} {0 {}}
# Ticket #966
#
do_test misc4-3.1 {
execsql {
CREATE TABLE Table1(ID integer primary key, Value TEXT);
INSERT INTO Table1 VALUES(1, 'x');
CREATE TABLE Table2(ID integer NOT NULL, Value TEXT);
INSERT INTO Table2 VALUES(1, 'z');
INSERT INTO Table2 VALUES (1, 'a');
SELECT ID, Value FROM Table1
UNION SELECT ID, max(Value) FROM Table2 GROUP BY 1,2
ORDER BY 1, 2;
}
} {{} {} 1 x 1 z}
finish_test