]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Do not flatten aggregate subqueries that contain min() or max() functions
authordrh <drh@noemail.net>
Mon, 15 Sep 2014 14:46:02 +0000 (14:46 +0000)
committerdrh <drh@noemail.net>
Mon, 15 Sep 2014 14:46:02 +0000 (14:46 +0000)
commit9588ad95c1a9cc7cd5add559b43536d48a4f2e4e
tree1cd3d08ade520828ba3eea7f43dccfc5d031fd3d
parent6092d2bcfebf699c970146308f910cb4f9423ace
Do not flatten aggregate subqueries that contain min() or max() functions
so that if the min()/max() are discarded by the outer query, they still
function and cause non-aggregate expression to be evaluated on the minimal
or maximal row.

FossilOrigin-Name: 0bdf1a086b3946722f4d4b328e25917f61c14713
manifest
manifest.uuid
src/func.c
src/resolve.c
src/select.c
src/sqliteInt.h
test/aggnested.test
test/minmax4.test