Fix for Group ReScan suggested by Vadim.
This commit is contained in:
parent
4f807be2ad
commit
e2bc275657
@ -13,7 +13,7 @@
|
|||||||
* columns. (ie. tuples from the same group are consecutive)
|
* columns. (ie. tuples from the same group are consecutive)
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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_useFirstTuple = FALSE;
|
||||||
grpstate->grp_done = FALSE;
|
grpstate->grp_done = FALSE;
|
||||||
|
|
||||||
|
if (((Plan *) node)->lefttree &&
|
||||||
|
((Plan *) node)->lefttree->chgParam == NULL)
|
||||||
|
ExecReScan(((Plan *) node)->lefttree, exprCtxt, (Plan *) node);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user