Call PLy_spi_execute_fetch_result inside the try/catch block
This way errors from fetching tuples are correctly reported as errors
in the SPI call. While at it, avoid palloc(0).
Jan Urbański
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=88dcdf9007895b6703dfaf90d15244055384c603
Modified Files
--------------
src/pl/plpython/plpython.c | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)