diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-10 18:39:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-10 18:39:44 +0000 |
commit | 54affc0921a169559ccbca57fa1b7a9ba09ef813 (patch) | |
tree | 7a4d68ef80173bb55168a527499e058fb6b494ba /src/backend/executor/nodeAppend.c | |
parent | 56442e9fab3c27bf30598867f87f92bf7e15d077 (diff) |
Test HAVING condition before computing targetlist of an Aggregate node.
This is required by SQL spec to avoid failures in cases like
SELECT sum(win)/sum(lose) FROM ... GROUP BY ... HAVING sum(lose) > 0;
AFAICT we have gotten this wrong since day one. Kudos to Holger Jakobs
for being the first to notice.
Diffstat (limited to 'src/backend/executor/nodeAppend.c')
0 files changed, 0 insertions, 0 deletions