aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-04-18 10:45:18 -0400
committerRobert Haas <rhaas@postgresql.org>2012-04-18 10:45:18 -0400
commitb5eccaef2c05fd0c17f4510001528232b242a88e (patch)
tree893216f71e417945504a4d766ec5f4900ab5495f /src
parent53bbc681ca97650a4b8ea59d8f1710196654fca5 (diff)
downloadpostgresql-b5eccaef2c05fd0c17f4510001528232b242a88e.tar.gz
postgresql-b5eccaef2c05fd0c17f4510001528232b242a88e.zip
Fix copyfuncs/equalfuncs support for ReassignOwnedStmt.
Noah Misch
Diffstat (limited to 'src')
-rw-r--r--src/backend/nodes/copyfuncs.c2
-rw-r--r--src/backend/nodes/equalfuncs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index c58a1724cd1..eed0ea46073 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -3652,7 +3652,7 @@ _copyReassignOwnedStmt(const 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 5d3e2414518..c06b068e263 100644
--- a/src/backend/nodes/equalfuncs.c
+++ b/src/backend/nodes/equalfuncs.c
@@ -1947,7 +1947,7 @@ static bool
_equalReassignOwnedStmt(const ReassignOwnedStmt *a, const ReassignOwnedStmt *b)
{
COMPARE_NODE_FIELD(roles);
- COMPARE_NODE_FIELD(newrole);
+ COMPARE_STRING_FIELD(newrole);
return true;
}