mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
add comment back and missing file
This commit is contained in:
parent
ee62318348
commit
300d4ae593
@ -120,7 +120,7 @@ namespace
|
||||
{
|
||||
case AuthenticationType::NO_PASSWORD:
|
||||
{
|
||||
return true;
|
||||
return true; // N.B. even if the password is not empty!
|
||||
}
|
||||
case AuthenticationType::PLAINTEXT_PASSWORD:
|
||||
{
|
||||
|
@ -527,6 +527,11 @@ bool ParserCreateUserQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expec
|
||||
if (!parsed_identified_with)
|
||||
{
|
||||
parsed_add_new_method = parseAddIdentifiedWith(pos, expected, auth_data);
|
||||
|
||||
if (parsed_add_new_method && !alter)
|
||||
{
|
||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Create user query is not allowed to have ADD IDENTIFIED, remove the ADD keyword.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user