]> granicus.if.org Git - postgresql/commit
Tweak GROUP BY so that it will still accept result-column names, but only
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Mar 2000 23:31:19 +0000 (23:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Mar 2000 23:31:19 +0000 (23:31 +0000)
commit1763a7c1ea3c609bae327f4c6be7cecc7cdee006
treef73eb8bb4a347c764d21b76092f679b684e9326b
parent8e0790519a54e775f4d3a6ae3c6da560d0869d66
Tweak GROUP BY so that it will still accept result-column names, but only
after trying to resolve the item as an input-column name.  This allows us
to be compliant with the SQL92 spec for queries that fall within the spec,
while still accepting the same out-of-spec queries as 6.5 did.  You'll only
lose if there is an output column name that is the same as an input
column name, but doesn't refer to the same value.  7.0 will interpret
such a GROUP BY spec differently than 6.5 did.  No way around that, because
6.5 was clearly not spec compliant.
doc/src/sgml/ref/select.sgml
src/backend/parser/parse_clause.c
src/test/regress/expected/numerology.out
src/test/regress/sql/numerology.sql