]> granicus.if.org Git - postgresql/commit
Detect case of invalid use of GROUP BY when there are no
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 May 1999 21:41:14 +0000 (21:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 May 1999 21:41:14 +0000 (21:41 +0000)
commit505b5185fc37a53fbdcd27e26f163fb0c532d136
treec4fd935f4f6f26ef6d6f6f99dfcbfef1fd986b10
parent57455fc565ca72f7423eca35b8141d1e3ddb65e8
Detect case of invalid use of GROUP BY when there are no
aggregate functions, as in
select a, b from foo group by a;
The ungrouped reference to b is not kosher, but formerly we neglected to
check this unless there was an aggregate function somewhere in the query.
src/backend/parser/analyze.c
src/backend/parser/parse_agg.c