Skip to content

Commit f8c53d5

Browse files
committed
Fix copyfuncs/equalfuncs support for ReassignOwnedStmt.
Noah Misch
1 parent a146e7b commit f8c53d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/nodes/copyfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3709,7 +3709,7 @@ _copyReassignOwnedStmt(ReassignOwnedStmt *from)
37093709
ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt);
37103710

37113711
COPY_NODE_FIELD(roles);
3712-
COPY_SCALAR_FIELD(newrole);
3712+
COPY_STRING_FIELD(newrole);
37133713

37143714
return newnode;
37153715
}

src/backend/nodes/equalfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ static bool
20052005
_equalReassignOwnedStmt(ReassignOwnedStmt *a, ReassignOwnedStmt *b)
20062006
{
20072007
COMPARE_NODE_FIELD(roles);
2008-
COMPARE_NODE_FIELD(newrole);
2008+
COMPARE_STRING_FIELD(newrole);
20092009

20102010
return true;
20112011
}

0 commit comments

Comments
 (0)