Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b946244

Browse files
committed
Quick fix for subplan-related crash.
1 parent 28d8b42 commit b946244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/executor/execMain.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
*
2828
* IDENTIFICATION
29-
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.64 1999/01/27 00:36:20 tgl Exp $
29+
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.65 1999/01/27 16:48:20 tgl Exp $
3030
*
3131
*-------------------------------------------------------------------------
3232
*/
@@ -376,7 +376,7 @@ ExecCheckPerms(CmdType operation,
376376
if (!ok)
377377
elog(ERROR, "%s: %s", rname.data, aclcheck_error_strings[aclcheck_result]);
378378

379-
if (parseTree->rowMark != NULL)
379+
if (parseTree != NULL && parseTree->rowMark != NULL)
380380
{
381381
foreach(lp, parseTree->rowMark)
382382
{

0 commit comments

Comments
 (0)