mirror of https://github.com/citusdata/citus.git
Review changes
parent
7a205f2dd2
commit
816fb85333
|
@ -408,21 +408,19 @@ AppendRevokeAdminOptionFor(StringInfo buf, GrantRoleStmt *stmt)
|
|||
|
||||
switch (opt->defname)
|
||||
{
|
||||
case "admin":
|
||||
appendStringInfo(buf, "ADMIN OPTION FOR ");
|
||||
break;
|
||||
|
||||
case "inherit":
|
||||
appendStringInfo(buf, "INHERIT OPTION FOR ");
|
||||
break;
|
||||
|
||||
case "set":
|
||||
appendStringInfo(buf, "SET OPTION FOR ");
|
||||
break;
|
||||
}
|
||||
else if (strcmp(opt->defname, "inherit") == 0);
|
||||
{
|
||||
appendStringInfo(buf, "INHERIT TRUE");
|
||||
appendStringInfo(buf, "GRANT x TO y WITH INHERIT TRUE, SET TRUE;");
|
||||
}
|
||||
else if (strcmp(opt->defname, "set") == 0)
|
||||
{
|
||||
appendStringInfo(buf, "SET TRUE");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (!stmt->is_grant && stmt->admin_opt)
|
||||
{
|
||||
|
|
|
@ -658,4 +658,3 @@ DROP ROLE role3, role4, role5;
|
|||
SET client_min_messages TO ERROR;
|
||||
DROP EXTENSION postgres_fdw CASCADE;
|
||||
DROP SCHEMA pg16 CASCADE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue