mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
Change scoping of table and join refnames to conform to SQL92: a JOIN
clause with an alias is a <subquery> and therefore hides table references appearing within it, according to the spec. This is the same as the preliminary patch I posted to pgsql-patches yesterday, plus some really grotty code in ruleutils.c to reverse-list a query tree with the correct alias name depending on context. I'd rather not have done that, but unless we want to force another initdb for 7.1, there's no other way for now.
This commit is contained in:
@ -67,7 +67,7 @@ Each table referenced in the query is represented by a <A
|
||||
HREF="../../include/nodes/parsenodes.h"> RangeTableEntry,</A> and they
|
||||
are linked together to form the <I>range table</I> of the query, which
|
||||
is generated by <A HREF="../../backend/parser/parse_clause.c">
|
||||
makeRangeTable().</A> Query.rtable holds the query's range table.<P>
|
||||
transformFromClause().</A> Query.rtable holds the query's range table.<P>
|
||||
|
||||
|
||||
Certain queries, like <I>SELECT,</I> return columns of data. Other
|
||||
|
Reference in New Issue
Block a user