Do honest transformation and preprocessing of LIMIT/OFFSET clauses,
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jul 2003 19:07:54 +0000 (19:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Jul 2003 19:07:54 +0000 (19:07 +0000)
commit6f183dfecb2a27ea68d33f77817be27f37843668
tree5751788b22d33742619aa01a4a287bdbe154d79b
parent4e59bab1fab062e41e42b0d7f07b518695645af5
Do honest transformation and preprocessing of LIMIT/OFFSET clauses,
instead of the former kluge whereby gram.y emitted already-transformed
expressions.  This is needed so that Params appearing in these clauses
actually work correctly.  I suppose some might claim that the side effect
of 'SELECT ... LIMIT 2+2' working is a new feature, but I say this is
a bug fix.
src/backend/optimizer/plan/planner.c
src/backend/optimizer/util/clauses.c
src/backend/parser/analyze.c
src/backend/parser/gram.y
src/backend/parser/parse_clause.c
src/backend/parser/parse_coerce.c
src/include/parser/parse_clause.h
src/include/parser/parse_coerce.h