Update src/DataTypes/Serializations/SerializationBool.cpp

Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
kevin wan 2021-11-19 20:25:15 +08:00 committed by GitHub
parent 2b3529fb58
commit 90433ff911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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