Fix for drop database and junk filters.

This commit is contained in:
Bruce Momjian 1998-05-26 03:44:07 +00:00
parent e84f8a4656
commit b15b768bfa

View File

@ -26,7 +26,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.46 1998/05/21 03:53:50 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.47 1998/05/26 03:44:07 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -530,7 +530,8 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate)
JunkFilter *j = (JunkFilter *) ExecInitJunkFilter(targetList); JunkFilter *j = (JunkFilter *) ExecInitJunkFilter(targetList);
estate->es_junkFilter = j; estate->es_junkFilter = j;
tupType = j->jf_cleanTupType; /* Added by daveh@insightdist.com 5/20/98 */ if (operation == CMD_SELECT)
tupType = j->jf_cleanTupType;
} }
else else
estate->es_junkFilter = NULL; estate->es_junkFilter = NULL;