* columns. (ie. tuples from the same group are consecutive)
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.26 1999/05/25 16:08:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.27 1999/07/11 01:57:32 tgl Exp $
*
*-------------------------------------------------------------------------
*/
node->grpstate = grpstate;
grpstate->grp_useFirstTuple = FALSE;
grpstate->grp_done = FALSE;
+ grpstate->grp_firstTuple = NULL;
/*
* assign node's base id and create expression context
grpstate->grp_useFirstTuple = FALSE;
grpstate->grp_done = FALSE;
+ if (grpstate->grp_firstTuple != NULL)
+ {
+ pfree(grpstate->grp_firstTuple);
+ grpstate->grp_firstTuple = NULL;
+ }
if (((Plan *) node)->lefttree &&
((Plan *) node)->lefttree->chgParam == NULL)