1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

SUM returns NULL when it has no inputs. Ticket #1413. (CVS 2678)

FossilOrigin-Name: 6281859425d39c11d82875301fefafad1f08416d
This commit is contained in:
drh
2005-09-08 20:37:43 +00:00
parent 3f219f46fc
commit c2bd913a40
8 changed files with 52 additions and 36 deletions

View File

@ -12,7 +12,7 @@
# focus of this file is testing aggregate functions and the
# GROUP BY and HAVING clauses of SELECT statements.
#
# $Id: select5.test,v 1.12 2005/09/08 10:37:01 drh Exp $
# $Id: select5.test,v 1.13 2005/09/08 20:37:44 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -118,7 +118,7 @@ do_test select5-4.5 {
execsql {
SELECT sum(x) FROM t1 WHERE x>100
}
} {0}
} {{}}
# Some tests for queries with a GROUP BY clause but no aggregate functions.
#