mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
CURRENT GRANTS(...) implementation
This commit is contained in:
parent
dacdbe469e
commit
f2790a15ff
@ -288,7 +288,16 @@ bool ParserGrantQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
|
||||
if (!is_revoke && ParserKeyword{"CURRENT GRANTS"}.ignore(pos, expected))
|
||||
{
|
||||
current_grants = true;
|
||||
elements.emplace_back(AccessType::ALL);
|
||||
if (ParserToken(TokenType::OpeningRoundBracket).ignore(pos, expected))
|
||||
{
|
||||
if (!parseElementsWithoutOptions(pos, expected, elements) && !parseRoles(pos, expected, is_revoke, attach_mode, roles))
|
||||
return false;
|
||||
|
||||
if (!ParserToken(TokenType::ClosingRoundBracket).ignore(pos, expected))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
elements.emplace_back(AccessType::ALL);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user