8000 Fix copyfuncs/equalfuncs support for ReassignOwnedStmt. · jandas/postgres@4fd49c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4fd49c7

Browse files
committed
Fix copyfuncs/equalfuncs support for ReassignOwnedStmt.
Noah Misch
1 parent 156fac5 commit 4fd49c7

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
@@ -3449,7 +3449,7 @@ _copyReassignOwnedStmt(ReassignOwnedStmt *from)
34493449
ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt);
34503450

34513451
COPY_NODE_FIELD(roles);
3452-
COPY_SCALAR_FIELD(newrole);
3452+
COPY_STRING_FIELD(newrole);
34533453

34543454
return newnode;
34553455
}

src/backend/nodes/equalfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ static bool
18881888
_equalReassignOwnedStmt(ReassignOwnedStmt *a, ReassignOwnedStmt *b)
18891889
{
18901890
COMPARE_NODE_FIELD(roles);
1891-
COMPARE_NODE_FIELD(newrole);
1891+
COMPARE_STRING_FIELD(newrole);
18921892

18931893
return true;
18941894
}

0 commit comments

Comments
 (0)
0