mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fix inconsistent formatting of GRANT CURRENT GRANTS
This commit is contained in:
parent
bf75d2878b
commit
3f8f641dff
@ -149,7 +149,8 @@ void ASTGrantQuery::formatImpl(const FormatSettings & settings, FormatState &, F
|
||||
}
|
||||
else if (current_grants)
|
||||
settings.ostr << (settings.hilite ? hilite_keyword : "") << " CURRENT GRANTS" << (settings.hilite ? hilite_none : "");
|
||||
else
|
||||
|
||||
if (!access_rights_elements.empty())
|
||||
formatElementsWithoutOptions(access_rights_elements, settings);
|
||||
|
||||
settings.ostr << (settings.hilite ? IAST::hilite_keyword : "") << (is_revoke ? " FROM " : " TO ")
|
||||
|
@ -200,8 +200,10 @@ namespace
|
||||
if (!ParserKeyword{"ON"}.ignore(pos, expected))
|
||||
return false;
|
||||
|
||||
String database_name, table_name;
|
||||
bool any_database = false, any_table = false;
|
||||
String database_name;
|
||||
String table_name;
|
||||
bool any_database = false;
|
||||
bool any_table = false;
|
||||
if (!parseDatabaseAndTableNameOrAsterisks(pos, expected, database_name, any_database, table_name, any_table))
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user