提交 f7ec7dbf 编写于 作者: A Andrey Mironov

dbms: ReadBuffer::ignore does not call eof when n == 0 [#MTRSADMIN-1093]

上级 3e25e37f
......@@ -84,7 +84,7 @@ public:
void ignore(size_t n)
{
while (!eof() && n != 0)
while (n != 0 && !eof())
{
size_t bytes_to_ignore = std::min(static_cast<size_t>(working_buffer.end() - pos), n);
pos += bytes_to_ignore;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册