Instead of trying (and failing) to allow <<label>> at the end of a DECLARE

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 77e0d7b3eb0270fa48dc3e9b42b71618033f7ed5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-03T01:53:17Z
Releases: 9.0.0
Instead of trying (and failing) to allow <<label>> at the end of a DECLARE
section, throw an error message saying explicitly that the label must go
before DECLARE.  Per investigation of a recent pgsql-novice question,
this code did not work as intended in any modern PG version, maybe not ever.
Allowing such a thing would only create ambiguity anyway, so it seems better
to remove it than fix it.

Files

PathChange+/−
src/pl/plpgsql/src/gram.y modified +17 −13