postgresql/src/pl
Tom Lane f26c06a404 Fix error-cleanup mistakes in exec_stmt_call().
Commit 15c729347 was a couple bricks shy of a load: we need to
ensure that expr->plan gets reset to NULL on any error exit,
if it's not supposed to be saved.  Also ensure that the
stmt->target calculation gets redone if needed.

The easy way to exhibit a problem is to set up code that
violates the writable-argument restriction and then execute
it twice.  But error exits out of, eg, setup_param_list()
could also break it.  Make the existing PG_TRY block cover
all of that code to be sure.

Per report from Pavel Stehule.

Discussion: https://postgr.es/m/CAFj8pRAeXNTO43W2Y0Cn0YOVFPv1WpYyOqQrrzUiN6s=dn7gCg@mail.gmail.com
2018-11-09 22:04:14 -05:00
..
plperl Still further rethinking of build changes for macOS Mojave. 2018-10-18 14:55:23 -04:00
plpgsql Fix error-cleanup mistakes in exec_stmt_call(). 2018-11-09 22:04:14 -05:00
plpython Fix omissions in snprintf.c's coverage of standard *printf functions. 2018-10-08 19:15:55 -04:00
tcl Deduplicate "invalid input syntax" messages for various types. 2018-07-22 14:58:01 -07:00
Makefile Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:12 -04:00