mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
Update HTTPHandler.cpp
This commit is contained in:
parent
307551f857
commit
bd64098ee9
@ -558,10 +558,11 @@ void HTTPHandler::processQuery(
|
|||||||
auto client_info = session->getClientInfo();
|
auto client_info = session->getClientInfo();
|
||||||
auto context = session->makeQueryContext(std::move(client_info));
|
auto context = session->makeQueryContext(std::move(client_info));
|
||||||
|
|
||||||
if (params.has("client_protocol_version")) {
|
/// This parameter is used to tune the behavior of output formats (such as Native) for compatibility.
|
||||||
String version_param = params.get("client_protocol_version");
|
if (params.has("client_protocol_version"))
|
||||||
char * end;
|
{
|
||||||
context->setClientProtocolVersion(strtol(&version_param.front(), &end, 10));
|
UInt64 version_param = parse<UInt64>(params.get("client_protocol_version"));
|
||||||
|
context->setClientProtocolVersion(version_param);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The client can pass a HTTP header indicating supported compression method (gzip or deflate).
|
/// The client can pass a HTTP header indicating supported compression method (gzip or deflate).
|
||||||
|
Loading…
Reference in New Issue
Block a user