mirror of https://github.com/citusdata/citus.git
Review changes
parent
a212a9d0cc
commit
62e0d0d01b
|
@ -409,28 +409,16 @@ AppendRevokeAdminOptionFor(StringInfo buf, GrantRoleStmt *stmt)
|
||||||
{
|
{
|
||||||
switch (opt->defname)
|
switch (opt->defname)
|
||||||
{
|
{
|
||||||
case "admin":
|
|
||||||
appendStringInfo(buf, "ADMIN OPTION FOR ");
|
appendStringInfo(buf, "ADMIN OPTION FOR ");
|
||||||
opt_count++;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "inherit":
|
|
||||||
if (opt_count > 0)
|
|
||||||
{
|
|
||||||
appendStringInfo(buf, ", ");
|
|
||||||
}
|
}
|
||||||
appendStringInfo(buf, "INHERIT OPTION FOR ");
|
else if (strcmp(opt->defname, "inherit") == 0);
|
||||||
opt_count++;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "set":
|
|
||||||
if (opt_count > 0)
|
|
||||||
{
|
{
|
||||||
appendStringInfo(buf, ", ");
|
appendStringInfo(buf, "INHERIT TRUE");
|
||||||
|
appendStringInfo(buf, "GRANT x TO y WITH INHERIT TRUE, SET TRUE;");
|
||||||
}
|
}
|
||||||
appendStringInfo(buf, "SET OPTION FOR ");
|
else if (strcmp(opt->defname, "set") == 0)
|
||||||
opt_count++;
|
{
|
||||||
break;
|
appendStringInfo(buf, "SET TRUE");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue