Fix for Group ReScan suggested by Vadim.
authorBruce Momjian
Thu, 16 Jul 1998 02:58:09 +0000 (02:58 +0000)
committerBruce Momjian
Thu, 16 Jul 1998 02:58:09 +0000 (02:58 +0000)
src/backend/executor/nodeGroup.c

index 8ea2174d883efe9e673d54ede36081b3710730e8..cecae67b784c66e6c0b34bd99be58984b7e339c8 100644 (file)
@@ -13,7 +13,7 @@
  *   columns. (ie. tuples from the same group are consecutive)
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.20 1998/07/16 01:49:18 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/executor/nodeGroup.c,v 1.21 1998/07/16 02:58:09 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -425,4 +425,8 @@ ExecReScanGroup(Group *node, ExprContext *exprCtxt, Plan *parent)
 
    grpstate->grp_useFirstTuple = FALSE;
    grpstate->grp_done = FALSE;
+
+   if (((Plan *) node)->lefttree &&
+       ((Plan *) node)->lefttree->chgParam == NULL)
+       ExecReScan(((Plan *) node)->lefttree, exprCtxt, (Plan *) node);
 }