More rsi assignment line too.
This commit is contained in:
parent
0d1ebe0194
commit
abc8a0a0fe
@ -33,7 +33,7 @@
|
|||||||
* ENHANCEMENTS, OR MODIFICATIONS.
|
* ENHANCEMENTS, OR MODIFICATIONS.
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.87 2005/08/12 20:48:03 momjian Exp $
|
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.88 2005/08/12 21:09:34 momjian Exp $
|
||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
@ -921,6 +921,8 @@ plperl_func_handler(PG_FUNCTION_ARGS)
|
|||||||
plperl_current_tuple_store = 0;
|
plperl_current_tuple_store = 0;
|
||||||
plperl_current_tuple_desc = 0;
|
plperl_current_tuple_desc = 0;
|
||||||
|
|
||||||
|
rsi = (ReturnSetInfo *)fcinfo->resultinfo;
|
||||||
|
|
||||||
if (!rsi || !IsA(rsi, ReturnSetInfo) ||
|
if (!rsi || !IsA(rsi, ReturnSetInfo) ||
|
||||||
(rsi->allowedModes & SFRM_Materialize) == 0 ||
|
(rsi->allowedModes & SFRM_Materialize) == 0 ||
|
||||||
rsi->expectedDesc == NULL)
|
rsi->expectedDesc == NULL)
|
||||||
@ -942,8 +944,6 @@ plperl_func_handler(PG_FUNCTION_ARGS)
|
|||||||
if (SPI_finish() != SPI_OK_FINISH)
|
if (SPI_finish() != SPI_OK_FINISH)
|
||||||
elog(ERROR, "SPI_finish() failed");
|
elog(ERROR, "SPI_finish() failed");
|
||||||
|
|
||||||
rsi = (ReturnSetInfo *)fcinfo->resultinfo;
|
|
||||||
|
|
||||||
if (prodesc->fn_retisset)
|
if (prodesc->fn_retisset)
|
||||||
{
|
{
|
||||||
/* If the Perl function returned an arrayref, we pretend that it
|
/* If the Perl function returned an arrayref, we pretend that it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user