Skip to content

Commit

Permalink
Merge pull request #15 from DataSystemsLab/jdbc
Browse files Browse the repository at this point in the history
adding JDBC features
  • Loading branch information
RMoraffah authored Mar 27, 2017
2 parents 0e926ee + 8098a2f commit 0f22abb
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions PostgreSQL/src/backend/nodes/copyfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "nodes/plannodes.h"
#include "nodes/relation.h"
#include "utils/datum.h"
#include "../../include/nodes/plannodes.h"


/*
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -3829,9 +3856,9 @@ copyObject(const void *from)

switch (nodeTag(from))
{
/*
* PLAN NODES
*/
/*
* PLAN NODES
*/
case T_PlannedStmt:
retval = _copyPlannedStmt(from);
break;
Expand Down Expand Up @@ -3949,6 +3976,9 @@ copyObject(const void *from)
case T_PlanInvalItem:
retval = _copyPlanInvalItem(from);
break;
case T_RecScan:
retval = _copyRecScan(from);
break;

/*
* PRIMITIVE NODES
Expand Down

0 comments on commit 0f22abb

Please sign in to comment.