mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
dbms: fixed error with writing of ints as text [#CONV-7499].
This commit is contained in:
parent
9181fdb827
commit
4a93f82fb6
@ -29,6 +29,15 @@ namespace detail
|
||||
template <typename T>
|
||||
void writeUIntTextFallback(T x, WriteBuffer & buf)
|
||||
{
|
||||
if (x == 0)
|
||||
{
|
||||
buf.nextIfAtEnd();
|
||||
*buf.position() = '0';
|
||||
++buf.position();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
char tmp[WRITE_HELPERS_MAX_INT_WIDTH];
|
||||
|
||||
char * pos;
|
||||
|
Loading…
Reference in New Issue
Block a user