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

Commitf9d6ffc

Browse files
committed
Repair guaranteed core dump in SPI_exec(). Guess this routine wasn't
used before ...
1 parent3052a42 commitf9d6ffc

File tree

1 file changed

+6
-3
lines changed
  • src/backend/executor

1 file changed

+6
-3
lines changed

‎src/backend/executor/spi.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* spi.c
44
*Server Programming Interface
55
*
6-
* $Id: spi.c,v 1.50 2000/12/01 22:10:30 tgl Exp $
6+
* $Id: spi.c,v 1.51 2001/01/04 02:36:52 tgl Exp $
77
*
88
*-------------------------------------------------------------------------
99
*/
@@ -695,8 +695,11 @@ _SPI_execute(char *src, int tcount, _SPI_plan *plan)
695695
}
696696
}
697697

698-
plan->qtlist=queryTree_list;
699-
plan->ptlist=planTree_list;
698+
if (plan)
699+
{
700+
plan->qtlist=queryTree_list;
701+
plan->ptlist=planTree_list;
702+
}
700703

701704
returnres;
702705
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp