Parse JOIN/ON conditions with the proper visibility of input columns,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 17 Sep 2000 22:21:27 +0000 (22:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 17 Sep 2000 22:21:27 +0000 (22:21 +0000)
commit83dab2635b70f0d70ab670ae045b692e424a25e3
treeb3983b7ae9ac11562cb778a6c8456c7a4b2e131a
parent3d65d69633d86c8d7d7b863d5a5eba468021d471
Parse JOIN/ON conditions with the proper visibility of input columns,
ie, consider only the columns coming from the JOIN clause's sub-clauses.
Also detect attempts to reference columns belonging to other tables
(which would still be possible using an explicitly-qualified name).
I'm not sure this implements the spec's semantics 100% accurately, but
at least it gives plausible behavior.
src/backend/parser/parse_clause.c