mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
simplify syntax
This commit is contained in:
parent
179d54505a
commit
a1211a0f5a
@ -154,7 +154,7 @@ void ASTAuthenticationData::formatImpl(const FormatSettings & settings, FormatSt
|
||||
auth_type_name = AuthenticationTypeInfo::get(*type).name;
|
||||
}
|
||||
|
||||
const char * identified_string = settings.additional_authentication_method ? " ADD NEW AUTHENTICATION METHOD IDENTIFIED" : " IDENTIFIED";
|
||||
const char * identified_string = settings.additional_authentication_method ? " ADD IDENTIFIED" : " IDENTIFIED";
|
||||
|
||||
settings.ostr << (settings.hilite ? IAST::hilite_keyword : "") << identified_string << (settings.hilite ? IAST::hilite_none : "");
|
||||
|
||||
|
@ -411,7 +411,7 @@ namespace
|
||||
{
|
||||
return IParserBase::wrapParseImpl(pos, [&]
|
||||
{
|
||||
if (!ParserKeyword{Keyword::ADD_NEW_AUTHENTICATION_METHOD}.ignore(pos, expected))
|
||||
if (!ParserKeyword{Keyword::ADD}.ignore(pos, expected))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ namespace DB
|
||||
MR_MACROS(ADD_PROJECTION, "ADD PROJECTION") \
|
||||
MR_MACROS(ADD_STATISTICS, "ADD STATISTICS") \
|
||||
MR_MACROS(ADD, "ADD") \
|
||||
MR_MACROS(ADD_NEW_AUTHENTICATION_METHOD, "ADD NEW AUTHENTICATION METHOD") \
|
||||
MR_MACROS(ADMIN_OPTION_FOR, "ADMIN OPTION FOR") \
|
||||
MR_MACROS(AFTER, "AFTER") \
|
||||
MR_MACROS(ALGORITHM, "ALGORITHM") \
|
||||
|
Loading…
Reference in New Issue
Block a user