mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Better error message when DISTINCT is used on an aggregate function that
takes two or more arguments. Ticket #3641. (CVS 6269) FossilOrigin-Name: e20bf384668bcde7c2f2152ca88e28cf65a02679
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is the DISTINCT modifier on aggregate functions.
|
||||
#
|
||||
# $Id: distinctagg.test,v 1.2 2005/09/12 23:03:17 drh Exp $
|
||||
# $Id: distinctagg.test,v 1.3 2009/02/09 13:19:28 drh Exp $
|
||||
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -52,6 +52,11 @@ do_test distinctagg-2.1 {
|
||||
catchsql {
|
||||
SELECT count(distinct) FROM t1;
|
||||
}
|
||||
} {1 {DISTINCT in aggregate must be followed by an expression}}
|
||||
} {1 {DISTINCT aggregates must have exactly one argument}}
|
||||
do_test distinctagg-2.2 {
|
||||
catchsql {
|
||||
SELECT group_concat(distinct a,b) FROM t1;
|
||||
}
|
||||
} {1 {DISTINCT aggregates must have exactly one argument}}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user