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

Update StorageBuffer.cpp

上级 9a3701cc
......@@ -613,7 +613,7 @@ void StorageBuffer::writeBlockToDestination(const Block & block, StoragePtr tabl
auto list_of_columns = std::make_shared<ASTExpressionList>();
insert->columns = list_of_columns;
list_of_columns->children.reserve(block_to_write.columns());
for (const auto& column : block_to_write)
for (const auto & column : block_to_write)
list_of_columns->children.push_back(std::make_shared<ASTIdentifier>(column.name));
InterpreterInsertQuery interpreter{insert, context, allow_materialized};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册