Skip to content

Commit abc8a0a

Browse files
committed
More rsi assignment line too.
1 parent 0d1ebe0 commit abc8a0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pl/plperl/plperl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* ENHANCEMENTS, OR MODIFICATIONS.
3434
*
3535
* IDENTIFICATION
36-
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.87 2005/08/12 20:48:03 momjian Exp $
36+
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.88 2005/08/12 21:09:34 momjian Exp $
3737
*
3838
**********************************************************************/
3939

@@ -909,7 +909,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
909909
SV *perlret;
910910
Datum retval;
911911
ReturnSetInfo *rsi;
912-
SV* array_ret = NULL;
912+
SV* array_ret = NULL;
913913

914914
if (SPI_connect() != SPI_OK_CONNECT)
915915
elog(ERROR, "could not connect to SPI manager");
@@ -921,6 +921,8 @@ plperl_func_handler(PG_FUNCTION_ARGS)
921921
plperl_current_tuple_store = 0;
922922
plperl_current_tuple_desc = 0;
923923

924+
rsi = (ReturnSetInfo *)fcinfo->resultinfo;
925+
924926
if (!rsi || !IsA(rsi, ReturnSetInfo) ||
925927
(rsi->allowedModes & SFRM_Materialize) == 0 ||
926928
rsi->expectedDesc == NULL)
@@ -942,8 +944,6 @@ plperl_func_handler(PG_FUNCTION_ARGS)
942944
if (SPI_finish() != SPI_OK_FINISH)
943945
elog(ERROR, "SPI_finish() failed");
944946

945-
rsi = (ReturnSetInfo *)fcinfo->resultinfo;
946-
947947
if (prodesc->fn_retisset)
948948
{
949949
/* If the Perl function returned an arrayref, we pretend that it

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy