mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
aa68fd2aec
Fix type-checking of range_hashed dictionary with mysql as a source. Parenthesise all expressions to avoid errors.
19 lines
206 B
C++
19 lines
206 B
C++
#pragma once
|
|
|
|
#include <DB/IO/WriteHelpers.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
void writeParenthesisedString(const String & s, WriteBuffer & buf)
|
|
{
|
|
writeChar('(', buf);
|
|
writeString(s, buf);
|
|
writeChar(')', buf);
|
|
}
|
|
|
|
|
|
}
|