mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
Addition to prev. revision
This commit is contained in:
parent
0852bc98bf
commit
435a5497dd
@ -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"), {});
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user