mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Resolve conservation
This commit is contained in:
parent
40ad8499a0
commit
5c9959af49
@ -144,8 +144,8 @@ MongoDBDictionarySource::MongoDBDictionarySource(
|
||||
}
|
||||
else
|
||||
{
|
||||
// Connect with host/port/user/etc through constructing
|
||||
std::string uri_constructed("mongodb://" + host + ":" + std::to_string(port) + "/" + db + "?" + options);
|
||||
// Connect with host/port/user/etc through constructing the uri
|
||||
std::string uri_constructed("mongodb://" + host + ":" + std::to_string(port) + "/" + db + (options.empty() ? "" : "?" + options));
|
||||
connection->connect(uri_constructed, socket_factory);
|
||||
|
||||
if (!user.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user