mirror of https://github.com/citusdata/citus.git
Update src/backend/distributed/commands/role.c
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>pull/7451/head
parent
8a0263b5e3
commit
6582b4490d
|
@ -912,7 +912,7 @@ GenerateGrantRoleStmtsOfRole(Oid roleid)
|
||||||
RoleSpec *grantorRole = makeNode(RoleSpec);
|
RoleSpec *grantorRole = makeNode(RoleSpec);
|
||||||
grantorRole->roletype = ROLESPEC_CSTRING;
|
grantorRole->roletype = ROLESPEC_CSTRING;
|
||||||
grantorRole->location = -1;
|
grantorRole->location = -1;
|
||||||
grantorRole->rolename = GetUserNameFromId(membership->grantor, true);
|
grantorRole->rolename = GetUserNameFromId(membership->grantor, false);
|
||||||
grantRoleStmt->grantor = grantorRole;
|
grantRoleStmt->grantor = grantorRole;
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_16
|
#if PG_VERSION_NUM >= PG_VERSION_16
|
||||||
|
|
Loading…
Reference in New Issue