Use a varno not chosen at random for dummy variables in the top-level
authorTom Lane <[email protected]>
Tue, 11 Feb 2003 04:13:39 +0000 (04:13 +0000)
committerTom Lane <[email protected]>
Tue, 11 Feb 2003 04:13:39 +0000 (04:13 +0000)
commitbf70647b0e4fd135cc7012133db6015c28e451d1
tree0556e58781122de1954e554da222563850f656c6
parent53cdb2573fbffc3f4952306d367fff3601107f24
Use a varno not chosen at random for dummy variables in the top-level
targetlist of a set-operation tree.  I'm not sure that this solution
will really stand the test of time --- perhaps we need to make a special
RTE for such vars to refer to.  But this quick hack fixes Brandon Craig
Rhodes' complaint of 10-Feb-02 about EXCEPT in CREATE RULE, while not
changing any behavior in the better-tested cases where leftmostRTI is
one anyway.
src/backend/parser/analyze.c