simplify syntax

This commit is contained in:
Arthur Passos 2024-06-20 16:51:52 -03:00
parent 179d54505a
commit a1211a0f5a
3 changed files with 2 additions and 3 deletions

View File

@ -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 : "");

View File

@ -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;
}

View File

@ -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") \