Initialize es_snapshot.

This commit is contained in:
Vadim B. Mikheev 1999-02-01 13:33:27 +00:00
parent 757f403451
commit 072be47202
2 changed files with 3 additions and 1 deletions

View File

@ -121,6 +121,7 @@ ExecInitSubPlan(SubPlan *node, EState *estate, Plan *parent)
ExecCreateTupleTable(ExecCountSlotsNode(node->plan) + 10);
pfree(sp_estate->es_refcount);
sp_estate->es_refcount = estate->es_refcount;
sp_estate->es_snapshot = estate->es_snapshot;
if (!ExecInitNode(node->plan, sp_estate, NULL))
return false;

View File

@ -14,7 +14,7 @@
* ExecInitTee
* 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_refcount = currentEstate->es_refcount;
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