Initialize es_snapshot.
This commit is contained in:
parent
757f403451
commit
072be47202
|
@ -121,6 +121,7 @@ ExecInitSubPlan(SubPlan *node, EState *estate, Plan *parent)
|
||||||
ExecCreateTupleTable(ExecCountSlotsNode(node->plan) + 10);
|
ExecCreateTupleTable(ExecCountSlotsNode(node->plan) + 10);
|
||||||
pfree(sp_estate->es_refcount);
|
pfree(sp_estate->es_refcount);
|
||||||
sp_estate->es_refcount = estate->es_refcount;
|
sp_estate->es_refcount = estate->es_refcount;
|
||||||
|
sp_estate->es_snapshot = estate->es_snapshot;
|
||||||
|
|
||||||
if (!ExecInitNode(node->plan, sp_estate, NULL))
|
if (!ExecInitNode(node->plan, sp_estate, NULL))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* ExecInitTee
|
* ExecInitTee
|
||||||
* ExecEndTee
|
* ExecEndTee
|
||||||
*
|
*
|
||||||
* $Id: nodeTee.c,v 1.27 1998/12/14 06:50:22 scrappy Exp $
|
* $Id: nodeTee.c,v 1.28 1999/02/01 13:33:27 vadim Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -80,6 +80,7 @@ ExecInitTee(Tee *node, EState *currentEstate, Plan *parent)
|
||||||
estate->es_tupleTable = currentEstate->es_tupleTable;
|
estate->es_tupleTable = currentEstate->es_tupleTable;
|
||||||
estate->es_refcount = currentEstate->es_refcount;
|
estate->es_refcount = currentEstate->es_refcount;
|
||||||
estate->es_junkFilter = currentEstate->es_junkFilter;
|
estate->es_junkFilter = currentEstate->es_junkFilter;
|
||||||
|
estate->es_snapshot = currentEstate->es_snapshot;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* use the range table for Tee subplan since the range tables for the
|
* use the range table for Tee subplan since the range tables for the
|
||||||
|
|
Loading…
Reference in New Issue