Merge pull request #3910 from amosbird/ub

Fix UB.
This commit is contained in:
alexey-milovidov 2018-12-24 16:04:14 +03:00 committed by GitHub
commit 659bb3f56c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ BlockInputStreams StorageMerge::read(
else
{
source_streams.emplace_back(std::make_shared<LazyBlockInputStream>(
header, [=, &real_column_names, &modified_context]() -> BlockInputStreamPtr
header, [=]() mutable -> BlockInputStreamPtr
{
BlockInputStreams streams = createSourceStreams(query_info, processed_stage, max_block_size,
header, storage, struct_lock, real_column_names,