Fix client failure

This commit is contained in:
Konstantin Bogdanov 2024-06-19 02:15:18 +02:00
parent 4e4a2db14f
commit db541b95c7
Signed by: thevar1able
GPG Key ID: DB399448D9FE52F1

View File

@ -1112,7 +1112,7 @@ void Client::processOptions(const OptionsDescription & options_description,
config().setString("ignore_drop_queries_probability", "1");
if (options.count("jwt"))
{
if (options.count("user"))
if (!options["user"].defaulted())
throw Exception(ErrorCodes::BAD_ARGUMENTS, "User and JWT flags can't be specified together");
config().setString("jwt", options["jwt"].as<std::string>());
}