Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b5eccae

Browse files
committed
Fix copyfuncs/equalfuncs support for ReassignOwnedStmt.
Noah Misch
1 parent 53bbc68 commit b5eccae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/nodes/copyfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3652,7 +3652,7 @@ _copyReassignOwnedStmt(const ReassignOwnedStmt *from)
36523652
ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt);
36533653

36543654
COPY_NODE_FIELD(roles);
3655-
COPY_SCALAR_FIELD(newrole);
3655+
COPY_STRING_FIELD(newrole);
36563656

36573657
return newnode;
36583658
}

src/backend/nodes/equalfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ static bool
19471947
_equalReassignOwnedStmt(const ReassignOwnedStmt *a, const ReassignOwnedStmt *b)
19481948
{
19491949
COMPARE_NODE_FIELD(roles);
1950-
COMPARE_NODE_FIELD(newrole);
1950+
COMPARE_STRING_FIELD(newrole);
19511951

19521952
return true;
19531953
}

0 commit comments

Comments
 (0)