Skip to content

Commit

Permalink
fix: Add _copyGraphVLE func
Browse files Browse the repository at this point in the history
  • Loading branch information
emotionbug committed Jan 2, 2023
1 parent 35a8324 commit 7d674d4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/backend/nodes/copyfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5452,6 +5452,19 @@ _copyGraphDelElem(const GraphDelElem *from)
return newnode;
}

static GraphVLE *
_copyGraphVLE(const GraphVLE *from)
{
GraphVLE *newnode = makeNode(GraphVLE);

CopyPlanFields((const Plan *) from, (Plan *) newnode);

COPY_NODE_FIELD(subplan);
COPY_NODE_FIELD(vle_rel);

return newnode;
}

/* ****************************************************************
* extensible.h copy functions
* ****************************************************************
Expand Down Expand Up @@ -6563,6 +6576,9 @@ copyObjectImpl(const void *from)
case T_GraphDelElem:
retval = _copyGraphDelElem(from);
break;
case T_GraphVLE:
retval = _copyGraphVLE(from);
break;

/*
* MISCELLANEOUS NODES
Expand Down

0 comments on commit 7d674d4

Please sign in to comment.