]> granicus.if.org Git - postgresql/commit
Fix a few bogus statement type names in plpgsql error messages.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Aug 2015 23:22:37 +0000 (19:22 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Aug 2015 23:22:37 +0000 (19:22 -0400)
commit4c3754ffe0f5f85cdecd01d7c1ab55df94559302
tree93bbd7143bc576913db9a00ee1b94be5e762a082
parentf25087d26aa9c63ce90cd8e87131b6dbe943ba86
Fix a few bogus statement type names in plpgsql error messages.

plpgsql's error location context messages ("PL/pgSQL function fn-name line
line-no at stmt-type") would misreport a CONTINUE statement as being an
EXIT, and misreport a MOVE statement as being a FETCH.  These are clear
bugs that have been there a long time, so back-patch to all supported
branches.

In addition, in 9.5 and HEAD, change the description of EXECUTE from
"EXECUTE statement" to just plain EXECUTE; there seems no good reason why
this statement type should be described differently from others that have
a well-defined head keyword.  And distinguish GET STACKED DIAGNOSTICS from
plain GET DIAGNOSTICS.  These are a bit more of a judgment call, and also
affect existing regression-test outputs, so I did not back-patch into
stable branches.

Pavel Stehule and Tom Lane
src/pl/plpgsql/src/pl_funcs.c
src/test/regress/expected/event_trigger.out
src/test/regress/expected/plpgsql.out
src/test/regress/expected/triggers.out