Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabc8a0a

Browse files
committed
More rsi assignment line too.
1 parent0d1ebe0 commitabc8a0a

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/1220:48:03 momjian Exp $
36+
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.88 2005/08/1221:09:34 momjian Exp $
3737
*
3838
**********************************************************************/
3939

@@ -909,7 +909,7 @@ plperl_func_handler(PG_FUNCTION_ARGS)
909909
SV*perlret;
910910
Datumretval;
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)

[8]ページ先頭

©2009-2025 Movatter.jp