Skip to content

Commit 8098a2f

Browse files
committed
adding JDBC features
1 parent be8cdc1 commit 8098a2f

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

PostgreSQL/src/backend/nodes/copyfuncs.c

+33-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "nodes/plannodes.h"
2929
#include "nodes/relation.h"
3030
#include "utils/datum.h"
31+
#include "../../include/nodes/plannodes.h"
3132

3233

3334
/*
@@ -402,6 +403,32 @@ _copyIndexOnlyScan(const IndexOnlyScan *from)
402403
return newnode;
403404
}
404405

406+
/*
407+
* _copyIndexOnlyScan
408+
*/
409+
static RecScan *
410+
_copyRecScan(const RecScan *from)
411+
{
412+
RecScan *newnode = makeNode(RecScan);
413+
414+
/*
415+
* copy node superclass fields
416+
*/
417+
418+
419+
CopyScanFields((const Scan *) from, (Scan *) newnode);
420+
421+
/*
422+
* copy remainder of node
423+
*/
424+
425+
COPY_NODE_FIELD(recommender);
426+
// CopyScanFields((const Scan *) from, (Scan *) newnode);
427+
COPY_NODE_FIELD(subscan);
428+
429+
return newnode;
430+
}
431+
405432
/*
406433
* _copyBitmapIndexScan
407434
*/
@@ -3829,9 +3856,9 @@ copyObject(const void *from)
38293856

38303857
switch (nodeTag(from))
38313858
{
3832-
/*
3833-
* PLAN NODES
3834-
*/
3859+
/*
3860+
* PLAN NODES
3861+
*/
38353862
case T_PlannedStmt:
38363863
retval = _copyPlannedStmt(from);
38373864
break;
@@ -3949,6 +3976,9 @@ copyObject(const void *from)
39493976
case T_PlanInvalItem:
39503977
retval = _copyPlanInvalItem(from);
39513978
break;
3979+
case T_RecScan:
3980+
retval = _copyRecScan(from);
3981+
break;
39523982

39533983
/*
39543984
* PRIMITIVE NODES

0 commit comments

Comments
 (0)