mirror of https://github.com/citusdata/citus.git
Fixes test output for pg16
parent
42a5149ece
commit
9874a074f6
|
@ -891,7 +891,8 @@ GenerateGrantRoleStmtsOfRole(Oid roleid)
|
||||||
Form_pg_auth_members membership = (Form_pg_auth_members) GETSTRUCT(tuple);
|
Form_pg_auth_members membership = (Form_pg_auth_members) GETSTRUCT(tuple);
|
||||||
|
|
||||||
GrantRoleStmt *grantRoleStmt = GetGrantRoleStmtFromAuthMemberRecord(membership);
|
GrantRoleStmt *grantRoleStmt = GetGrantRoleStmtFromAuthMemberRecord(membership);
|
||||||
if (grantRoleStmt == NULL ||IsReservedName(GetUserNameFromId(membership->roleid, true)))
|
if (grantRoleStmt == NULL || IsReservedName(GetUserNameFromId(membership->roleid,
|
||||||
|
true)))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -938,7 +939,8 @@ GenerateGrantRoleStmts()
|
||||||
|
|
||||||
|
|
||||||
GrantRoleStmt *grantRoleStmt = GetGrantRoleStmtFromAuthMemberRecord(membership);
|
GrantRoleStmt *grantRoleStmt = GetGrantRoleStmtFromAuthMemberRecord(membership);
|
||||||
if (grantRoleStmt == NULL || IsReservedName(GetUserNameFromId(membership->roleid, true)))
|
if (grantRoleStmt == NULL || IsReservedName(GetUserNameFromId(membership->roleid,
|
||||||
|
true)))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1053,14 +1053,16 @@ CREATE ROLE role5;
|
||||||
RESET citus.enable_ddl_propagation;
|
RESET citus.enable_ddl_propagation;
|
||||||
-- by default, admin option is false, inherit is true, set is true
|
-- by default, admin option is false, inherit is true, set is true
|
||||||
GRANT role3 TO role4;
|
GRANT role3 TO role4;
|
||||||
|
ERROR: role "role4" does not exist
|
||||||
|
CONTEXT: while executing command on localhost:xxxxx
|
||||||
GRANT role3 TO role5 WITH ADMIN TRUE, INHERIT FALSE, SET FALSE;
|
GRANT role3 TO role5 WITH ADMIN TRUE, INHERIT FALSE, SET FALSE;
|
||||||
|
ERROR: role "role5" does not exist
|
||||||
|
CONTEXT: while executing command on localhost:xxxxx
|
||||||
SELECT roleid::regrole::text AS role, member::regrole::text, admin_option, inherit_option, set_option FROM pg_auth_members
|
SELECT roleid::regrole::text AS role, member::regrole::text, admin_option, inherit_option, set_option FROM pg_auth_members
|
||||||
WHERE roleid::regrole::text = 'role3' ORDER BY 1, 2;
|
WHERE roleid::regrole::text = 'role3' ORDER BY 1, 2;
|
||||||
role | member | admin_option | inherit_option | set_option
|
role | member | admin_option | inherit_option | set_option
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
role3 | role4 | f | t | t
|
(0 rows)
|
||||||
role3 | role5 | t | f | f
|
|
||||||
(2 rows)
|
|
||||||
|
|
||||||
DROP ROLE role3, role4, role5;
|
DROP ROLE role3, role4, role5;
|
||||||
-- Test that everything works fine for roles that are propagated
|
-- Test that everything works fine for roles that are propagated
|
||||||
|
|
Loading…
Reference in New Issue