Skip to content
Snippets Groups Projects
Commit 595ed2a8 authored by Tom Lane's avatar Tom Lane
Browse files

Make the behavior of HAVING without GROUP BY conform to the SQL spec.

Formerly, if such a clause contained no aggregate functions we mistakenly
treated it as equivalent to WHERE.  Per spec it must cause the query to
be treated as a grouped query of a single group, the same as appearance
of aggregate functions would do.  Also, the HAVING filter must execute
after aggregate function computation even if it itself contains no
aggregate functions.
parent 609e32b9
No related branches found
No related tags found
No related merge requests found
Showing
with 384 additions and 237 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment