未验证 提交 b35ba115 编写于 作者: A alexey-milovidov 提交者: GitHub

Update IColumnDummy.h

上级 e684b463
......@@ -59,8 +59,10 @@ public:
StringRef serializeValueIntoArena(size_t /*n*/, Arena & arena, char const *& begin) const override
{
/// Has to put one useless byte into Arena, because serialization into zero bytes is ambiguous.
return { arena.allocContinue(1, begin), 1 };
/// Has to put one useless byte into Arena, because serialization into zero number of bytes is ambiguous.
char * res = arena.allocContinue(1, begin);
*res = 0;
return { res, 1 };
}
const char * deserializeAndInsertFromArena(const char * pos) override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册