]> granicus.if.org Git - postgresql/commit
Modify the handling of RAISE without parameters so that the error it throws
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Aug 2010 02:25:07 +0000 (02:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Aug 2010 02:25:07 +0000 (02:25 +0000)
commit2e35d4f35ca3dd822dbf8dcdcceff822cfb43d78
tree00509e50d92f3b0a20c9957d29b1adfe3e2f8943
parent4dfc4578548ea8f1bf69da5424d1e76a0b110a75
Modify the handling of RAISE without parameters so that the error it throws
can be caught in the same places that could catch an ordinary RAISE ERROR
in the same location.  The previous coding insisted on throwing the error
from the block containing the active exception handler; which is arguably
more surprising, and definitely unlike Oracle's behavior.

Not back-patching, since this is a pretty obscure corner case.  The risk
of breaking somebody's code in a minor version update seems to outweigh
any possible benefit.

Piyush Newe, reviewed by David Fetter
doc/src/sgml/plpgsql.sgml
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/plpgsql.h
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql