mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
calculate size of 'https' at compile time
This commit is contained in:
parent
dfb466d156
commit
228b43bc95
@ -60,7 +60,7 @@ using Pos = const char *;
|
||||
|
||||
struct ExtractProtocol
|
||||
{
|
||||
static size_t getReserveLengthForElement() { return strlen("https") + 1; }
|
||||
static size_t getReserveLengthForElement() { return MakeStringView("https").size() + 1; }
|
||||
|
||||
static void execute(Pos data, size_t size, Pos & res_data, size_t & res_size)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user