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:
@ -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
|
||||
|
Reference in New Issue
Block a user