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)
|
switch (opt->defname)
|
||||||
{
|
{
|
||||||
case "admin":
|
appendStringInfo(buf, "ADMIN OPTION FOR ");
|
||||||
appendStringInfo(buf, "ADMIN OPTION FOR ");
|
}
|
||||||
break;
|
else if (strcmp(opt->defname, "inherit") == 0);
|
||||||
|
{
|
||||||
case "inherit":
|
appendStringInfo(buf, "INHERIT TRUE");
|
||||||
appendStringInfo(buf, "INHERIT OPTION FOR ");
|
appendStringInfo(buf, "GRANT x TO y WITH INHERIT TRUE, SET TRUE;");
|
||||||
break;
|
}
|
||||||
|
else if (strcmp(opt->defname, "set") == 0)
|
||||||
case "set":
|
{
|
||||||
appendStringInfo(buf, "SET OPTION FOR ");
|
appendStringInfo(buf, "SET TRUE");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
if (!stmt->is_grant && stmt->admin_opt)
|
if (!stmt->is_grant && stmt->admin_opt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -658,4 +658,3 @@ DROP ROLE role3, role4, role5;
|
||||||
SET client_min_messages TO ERROR;
|
SET client_min_messages TO ERROR;
|
||||||
DROP EXTENSION postgres_fdw CASCADE;
|
DROP EXTENSION postgres_fdw CASCADE;
|
||||||
DROP SCHEMA pg16 CASCADE;
|
DROP SCHEMA pg16 CASCADE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue