Fixes review issues

pull/7319/head
gurkanindibay 2023-12-26 12:43:07 +03:00
parent f2ebc68e06
commit f49d429556
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ AppendRoleList(StringInfo buf, List *roleList)
{ {
Node *roleNode = (Node *) lfirst(cell); Node *roleNode = (Node *) lfirst(cell);
Assert(IsA(roleNode, RoleSpec) || IsA(roleNode, AccessPriv)); Assert(IsA(roleNode, RoleSpec) || IsA(roleNode, AccessPriv));
char const *rolename = NULL; const char *rolename = NULL;
if (IsA(roleNode, RoleSpec)) if (IsA(roleNode, RoleSpec))
{ {
rolename = RoleSpecString((RoleSpec *) roleNode, true); rolename = RoleSpecString((RoleSpec *) roleNode, true);
@ -91,7 +91,7 @@ AppendReassignOwnedStmt(StringInfo buf, ReassignOwnedStmt *stmt)
appendStringInfo(buf, "REASSIGN OWNED BY "); appendStringInfo(buf, "REASSIGN OWNED BY ");
AppendRoleList(buf, stmt->roles); AppendRoleList(buf, stmt->roles);
char const *newRoleName = RoleSpecString(stmt->newrole, true); const char *newRoleName = RoleSpecString(stmt->newrole, true);
appendStringInfo(buf, " TO %s", newRoleName); appendStringInfo(buf, " TO %s", newRoleName);
} }