mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Fix merge
This commit is contained in:
parent
5c15e6021b
commit
d7cdfb47d3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user