From 8098a2f4a2f154fb5927a9812460188aa9e05a46 Mon Sep 17 00:00:00 2001 From: RMoraffah Date: Mon, 27 Mar 2017 11:27:44 -0700 Subject: [PATCH] adding JDBC features --- PostgreSQL/src/backend/nodes/copyfuncs.c | 36 ++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/PostgreSQL/src/backend/nodes/copyfuncs.c b/PostgreSQL/src/backend/nodes/copyfuncs.c index f5b2cd5..06f3cd5 100644 --- a/PostgreSQL/src/backend/nodes/copyfuncs.c +++ b/PostgreSQL/src/backend/nodes/copyfuncs.c @@ -28,6 +28,7 @@ #include "nodes/plannodes.h" #include "nodes/relation.h" #include "utils/datum.h" +#include "../../include/nodes/plannodes.h" /* @@ -402,6 +403,32 @@ _copyIndexOnlyScan(const IndexOnlyScan *from) return newnode; } +/* + * _copyIndexOnlyScan + */ +static RecScan * +_copyRecScan(const RecScan *from) +{ + RecScan *newnode = makeNode(RecScan); + + /* + * copy node superclass fields + */ + + + CopyScanFields((const Scan *) from, (Scan *) newnode); + + /* + * copy remainder of node + */ + + COPY_NODE_FIELD(recommender); + // CopyScanFields((const Scan *) from, (Scan *) newnode); + COPY_NODE_FIELD(subscan); + + return newnode; +} + /* * _copyBitmapIndexScan */ @@ -3829,9 +3856,9 @@ copyObject(const void *from) switch (nodeTag(from)) { - /* - * PLAN NODES - */ + /* + * PLAN NODES + */ case T_PlannedStmt: retval = _copyPlannedStmt(from); break; @@ -3949,6 +3976,9 @@ copyObject(const void *from) case T_PlanInvalItem: retval = _copyPlanInvalItem(from); break; + case T_RecScan: + retval = _copyRecScan(from); + break; /* * PRIMITIVE NODES