Call PLy_spi_execute_fetch_result inside the try/catch block

Peter Eisentraut <peter_e@gmx.net>

Commit: 88dcdf9007895b6703dfaf90d15244055384c603
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2011-01-24T22:43:25Z
Releases: 9.1.0
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

Files

PathChange+/−
src/pl/plpython/plpython.c modified +14 −4