• Tom Lane's avatar
    Tweak findTargetlistEntry so that bare names occurring in GROUP BY clauses · b5e52b08
    Tom Lane authored
    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.
    b5e52b08
parse_relation.h 2.7 KB