Update src/backend/distributed/commands/role.c

Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
pull/7451/head
Gürkan İndibay 2024-02-15 10:47:04 +03:00 committed by GitHub
parent 8a0263b5e3
commit 6582b4490d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ GenerateGrantRoleStmtsOfRole(Oid roleid)
RoleSpec *grantorRole = makeNode(RoleSpec);
grantorRole->roletype = ROLESPEC_CSTRING;
grantorRole->location = -1;
grantorRole->rolename = GetUserNameFromId(membership->grantor, true);
grantorRole->rolename = GetUserNameFromId(membership->grantor, false);
grantRoleStmt->grantor = grantorRole;
#if PG_VERSION_NUM >= PG_VERSION_16