mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix client failure
This commit is contained in:
parent
4e4a2db14f
commit
db541b95c7
@ -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>());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user