]> granicus.if.org Git - postgresql/commitdiff
Initialize es_snapshot.
authorVadim B. Mikheev <vadim4o@yahoo.com>
Mon, 1 Feb 1999 13:33:27 +0000 (13:33 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Mon, 1 Feb 1999 13:33:27 +0000 (13:33 +0000)
src/backend/executor/nodeSubplan.c
src/backend/executor/nodeTee.c

index 94abb9aae64efd32ff0b2fdc478c21987bcb1a48..2da904a925a082ffead9af77b0ceb972fdb0e8c5 100644 (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;
index b565d2fd6e185d4658432ab77daa5fd5646d0310..5efa748e2c82d468be2c4d3546381b5ee7ffb205 100644 (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