mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Merge pull request #2909 from wawaka/wawaka/fix_reading_user_from_config
ISSUES-2629 clickhouse-client: fix reading user from config
This commit is contained in:
commit
408ca4649e
@ -1685,7 +1685,7 @@ public:
|
||||
config().setInt("port", options["port"].as<int>());
|
||||
if (options.count("secure"))
|
||||
config().setBool("secure", true);
|
||||
if (options.count("user"))
|
||||
if (options.count("user") && !options["user"].defaulted())
|
||||
config().setString("user", options["user"].as<std::string>());
|
||||
if (options.count("password"))
|
||||
config().setString("password", options["password"].as<std::string>());
|
||||
|
Loading…
Reference in New Issue
Block a user