]> granicus.if.org Git - postgresql/commit
Fix plpgsql's EXIT so that an EXIT without a label only matches a loop,
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 May 2009 17:27:57 +0000 (17:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 May 2009 17:27:57 +0000 (17:27 +0000)
commitc91bf01bc564bf938934c42867a8fd0e87ad0703
treec92cef624643fa0062537dfbf3533b38cb17abe1
parentccc6759dbb4140de5df7ba23c0623772c54c9d54
Fix plpgsql's EXIT so that an EXIT without a label only matches a loop,
never a BEGIN block.  This is required for Oracle compatibility and is
also plainly stated to be the behavior by our original documentation
(up until 8.1, in which the docs were adjusted to match the code's behavior;
but actually the old docs said the correct thing and the code was wrong).

Not back-patched because this introduces an incompatibility that could
break working applications.  Requires release note.
doc/src/sgml/plpgsql.sgml
src/pl/plpgsql/src/pl_exec.c