]> granicus.if.org Git - postgresql/commit
Tweak findTargetlistEntry so that bare names occurring in GROUP BY clauses
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Apr 2004 18:13:31 +0000 (18:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Apr 2004 18:13:31 +0000 (18:13 +0000)
commit9086c46f224b184496a15d94f9242b60fceb4afb
treed55a7860f89a5f0305036c23f4f48873abffa325
parent2510c867d6c7f5db1dc721542d8f7ebe9e110d9a
Tweak findTargetlistEntry so that bare names occurring in GROUP BY clauses
are sought first as local FROM columns, then as local SELECT-list aliases,
and finally as outer FROM columns; the former behavior made outer FROM
columns take precedence over aliases.  This does not change spec
conformance because SQL99 allows only the first case anyway, and it seems
more useful and self-consistent.  Per gripe from Dennis Bjorklund 2004-04-05.
src/backend/parser/parse_clause.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_relation.c
src/include/parser/parse_relation.h