mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
fix receive of timezone update on processing
This commit is contained in:
parent
0706108b68
commit
57c5a63721
@ -1188,6 +1188,10 @@ bool ClientBase::receiveSampleBlock(Block & out, ColumnsDescription & columns_de
|
||||
columns_description = ColumnsDescription::parse(packet.multistring_message[1]);
|
||||
return receiveSampleBlock(out, columns_description, parsed_query);
|
||||
|
||||
case Protocol::Server::TimezoneUpdate:
|
||||
DateLUT::setDefaultTimezone(packet.server_timezone);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw NetException(ErrorCodes::UNEXPECTED_PACKET_FROM_SERVER,
|
||||
"Unexpected packet from server (expected Data, Exception or Log, got {})",
|
||||
@ -1533,6 +1537,10 @@ bool ClientBase::receiveEndOfQuery()
|
||||
onProfileEvents(packet.block);
|
||||
break;
|
||||
|
||||
case Protocol::Server::TimezoneUpdate:
|
||||
DateLUT::setDefaultTimezone(packet.server_timezone);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw NetException(ErrorCodes::UNEXPECTED_PACKET_FROM_SERVER,
|
||||
"Unexpected packet from server (expected Exception, EndOfStream, Log, Progress or ProfileEvents. Got {})",
|
||||
|
Loading…
Reference in New Issue
Block a user