fix wrong condition

This commit is contained in:
Arthur Passos 2024-06-21 10:30:12 -03:00
parent a1211a0f5a
commit 55da169fe7

View File

@ -52,7 +52,7 @@ namespace
else if (query.names->size() == 1)
user.setName(query.names->front()->toString());
if (!query.attach && !query.alter && !auth_data.empty() && !allow_implicit_no_password)
if (!query.attach && !query.alter && auth_data.empty() && !allow_implicit_no_password)
throw Exception(ErrorCodes::BAD_ARGUMENTS,
"Authentication type NO_PASSWORD must "
"be explicitly specified, check the setting allow_implicit_no_password "