mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
poco changes are now used in MongoDBDictionarySource
This commit is contained in:
parent
83dbde476b
commit
08734d4dc0
@ -114,7 +114,11 @@ MongoDBDictionarySource::MongoDBDictionarySource(
|
||||
{
|
||||
if (!uri.empty())
|
||||
{
|
||||
Poco::URI poco_uri(uri);
|
||||
// Connect with URI.
|
||||
Poco::MongoDB::Connection::SocketFactory socket_factory;
|
||||
connection->connect(uri, socket_factory);
|
||||
|
||||
Poco::URI poco_uri(connection.uri());
|
||||
|
||||
// Parse database from URI. This is required for correctness -- the
|
||||
// cursor is created using database name and collection name, so we have
|
||||
@ -134,10 +138,6 @@ MongoDBDictionarySource::MongoDBDictionarySource(
|
||||
{
|
||||
user.resize(separator);
|
||||
}
|
||||
|
||||
// Connect with URI.
|
||||
Poco::MongoDB::Connection::SocketFactory socket_factory;
|
||||
connection->connect(uri, socket_factory);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user