From 8d2ef107e6b0ed1574ab7aaf437480a7473004e7 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 18 Apr 2012 10:45:18 -0400 Subject: [PATCH] Fix copyfuncs/equalfuncs support for ReassignOwnedStmt. Noah Misch --- src/backend/nodes/copyfuncs.c | 2 +- src/backend/nodes/equalfuncs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 4f095fd308..d999a25f86 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -3319,7 +3319,7 @@ _copyReassignOwnedStmt(ReassignOwnedStmt *from) ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt); COPY_NODE_FIELD(roles); - COPY_SCALAR_FIELD(newrole); + COPY_STRING_FIELD(newrole); return newnode; } diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index f10a626b70..5d1a19f7a6 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -1837,7 +1837,7 @@ static bool _equalReassignOwnedStmt(ReassignOwnedStmt *a, ReassignOwnedStmt *b) { COMPARE_NODE_FIELD(roles); - COMPARE_NODE_FIELD(newrole); + COMPARE_STRING_FIELD(newrole); return true; }