Addition to prev. revision

This commit is contained in:
Alexey Milovidov 2019-01-31 21:16:11 +03:00
parent 0852bc98bf
commit 435a5497dd

View File

@ -74,7 +74,8 @@ ClickHouseDictionarySource::ClickHouseDictionarySource(
, pool{is_local ? nullptr : createPool(host, port, secure, db, user, password, context)}
, load_all_query{query_builder.composeLoadAllQuery()}
{
context.setUser(user, password, {}, {});
/// We should set user info even for the case when the dictionary is loaded in-process (without TCP communication).
context.setUser(user, password, Poco::Net::SocketAddress("127.0.0.1"), {});
}