]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix copyfuncs/equalfuncs support for ReassignOwnedStmt.
authorRobert Haas <rhaas@postgresql.org>
Wed, 18 Apr 2012 14:45:18 +0000 (10:45 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 18 Apr 2012 14:46:52 +0000 (10:46 -0400)
Noah Misch

src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c

index 23425466464c593d454dfd930bcc592b392b84f3..528a46178d9f5d0eb76323e70f066700399e76bb 100644 (file)
@@ -2895,7 +2895,7 @@ _copyReassignOwnedStmt(ReassignOwnedStmt *from)
        ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt);
 
        COPY_NODE_FIELD(roles);
-       COPY_SCALAR_FIELD(newrole);
+       COPY_STRING_FIELD(newrole);
 
        return newnode;
 }
index 9506d2c43e5317e6fa409956766831037b4f7f19..e2509d4aa8db9ff62be8fecd05bee23ae096ae67 100644 (file)
@@ -1633,7 +1633,7 @@ static bool
 _equalReassignOwnedStmt(ReassignOwnedStmt *a, ReassignOwnedStmt *b)
 {
        COMPARE_NODE_FIELD(roles);
-       COMPARE_NODE_FIELD(newrole);
+       COMPARE_STRING_FIELD(newrole);
 
        return true;
 }