mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
Update src/DataTypes/Serializations/SerializationBool.cpp
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
parent
2b3529fb58
commit
90433ff911
@ -67,11 +67,12 @@ void SerializationBool::serializeTextEscaped(const IColumn & column, size_t row_
|
||||
ErrorCodes::ILLEGAL_COLUMN);
|
||||
if (col->getData()[row_num])
|
||||
{
|
||||
ostr.write(settings.bool_true_representation.c_str(), settings.bool_true_representation.length());
|
||||
writeString(settings.bool_true_representation, ostr);
|
||||
}
|
||||
else
|
||||
{
|
||||
ostr.write(settings.bool_false_representation.c_str(), settings.bool_false_representation.length()); }
|
||||
writeString(settings.bool_false_representation, ostr);
|
||||
}
|
||||
}
|
||||
|
||||
void SerializationBool::deserializeTextEscaped(IColumn & column, ReadBuffer & istr, const FormatSettings & settings) const
|
||||
|
Loading…
Reference in New Issue
Block a user