mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
Merge pull request #3351 from CurtizJ/CLICKHOUSE-3974
Create client_info when it`s not initialized [CLICKHOUSE-3974]
This commit is contained in:
commit
9f494b0278
@ -349,7 +349,7 @@ void Connection::sendQuery(
|
||||
{
|
||||
ClientInfo client_info_to_send;
|
||||
|
||||
if (!client_info)
|
||||
if (!client_info || client_info->empty())
|
||||
{
|
||||
/// No client info passed - means this query initiated by me.
|
||||
client_info_to_send.query_kind = ClientInfo::QueryKind::INITIAL_QUERY;
|
||||
|
Loading…
Reference in New Issue
Block a user