OSDN Git Service

Tweak plpgsql's expression reader to be smarter about parentheses and
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 Nov 2001 22:57:37 +0000 (22:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 Nov 2001 22:57:37 +0000 (22:57 +0000)
commit8830ce54d612411a99b7db8d6fc0c709d9071837
tree84c6066ab72674a6181146517b5f8b33a1e806ff
parentd1a2a01f3853995905ff9040f4ca7ab47de6aef8
Tweak plpgsql's expression reader to be smarter about parentheses and
to give more useful error messages.  Stephen Szabo's example of this
morning ('loop' used as a variable name inside a subselect) works
correctly now, and a FOR that is misinterpreted as an integer FOR will
draw 'missing .. at end of SQL expression', which is at least
marginally helpful.
src/pl/plpgsql/src/gram.y
src/pl/plpgsql/src/plpgsql.h