diff options
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 1525c0de725..db179becab5 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -3748,10 +3748,22 @@ _copyTransactionStmt(const TransactionStmt *from) COPY_STRING_FIELD(savepoint_name); COPY_STRING_FIELD(gid); COPY_SCALAR_FIELD(chain); + COPY_NODE_FIELD(wait); return newnode; } +static WaitClause * +_copyWaitClause(const WaitClause *from) +{ + WaitClause *newnode = makeNode(WaitClause); + + COPY_STRING_FIELD(lsn); + COPY_SCALAR_FIELD(timeout); + + return newnode; +}; + static CompositeTypeStmt * _copyCompositeTypeStmt(const CompositeTypeStmt *from) { @@ -5339,6 +5351,9 @@ copyObjectImpl(const void *from) case T_TransactionStmt: retval = _copyTransactionStmt(from); break; + case T_WaitClause: + retval = _copyWaitClause(from); + break; case T_CompositeTypeStmt: retval = _copyCompositeTypeStmt(from); break; |