dbms: fixed error with writing of ints as text [#CONV-7499].

This commit is contained in:
Alexey Milovidov 2013-05-08 17:13:26 +00:00
parent 9181fdb827
commit 4a93f82fb6

View File

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