Fix merge

This commit is contained in:
Alexey Milovidov 2023-07-24 01:56:04 +02:00
parent 5c15e6021b
commit d7cdfb47d3

View File

@ -953,6 +953,11 @@ void writeDecimalFractional(const T & x, UInt32 scale, WriteBuffer & ostr, bool
{
auto remainder = value % 10;
value /= 10;
if (remainder != 0 && last_nonzero_pos == 0)
last_nonzero_pos = pos;
buf[pos] += static_cast<char>(remainder);
}
writeChar('.', ostr);