]> granicus.if.org Git - postgresql/commit
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)
commitb89140a7eccd0247fa910346da79e701d78a8152
tree4b5e25e4407755598f6f352825ebffcff32db7c8
parent455891bf96f6ee3dda9150fe83af2be5e86a572b
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