mirror of https://github.com/citusdata/citus.git
Review changes
parent
9da1a70072
commit
712d15dc20
|
@ -409,28 +409,16 @@ AppendRevokeAdminOptionFor(StringInfo buf, GrantRoleStmt *stmt)
|
|||
{
|
||||
switch (opt->defname)
|
||||
{
|
||||
case "admin":
|
||||
appendStringInfo(buf, "ADMIN OPTION FOR ");
|
||||
opt_count++;
|
||||
break;
|
||||
|
||||
case "inherit":
|
||||
if (opt_count > 0)
|
||||
{
|
||||
appendStringInfo(buf, ", ");
|
||||
}
|
||||
appendStringInfo(buf, "INHERIT OPTION FOR ");
|
||||
opt_count++;
|
||||
break;
|
||||
|
||||
case "set":
|
||||
if (opt_count > 0)
|
||||
else if (strcmp(opt->defname, "inherit") == 0);
|
||||
{
|
||||
appendStringInfo(buf, ", ");
|
||||
appendStringInfo(buf, "INHERIT TRUE");
|
||||
appendStringInfo(buf, "GRANT x TO y WITH INHERIT TRUE, SET TRUE;");
|
||||
}
|
||||
appendStringInfo(buf, "SET OPTION FOR ");
|
||||
opt_count++;
|
||||
break;
|
||||
else if (strcmp(opt->defname, "set") == 0)
|
||||
{
|
||||
appendStringInfo(buf, "SET TRUE");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -594,4 +594,3 @@ RESET citus.grep_remote_commands;
|
|||
\set VERBOSITY terse
|
||||
SET client_min_messages TO ERROR;
|
||||
DROP SCHEMA pg16 CASCADE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue