Slightly better

This commit is contained in:
alesapin 2019-07-31 18:05:21 +03:00
parent aed4e5d1c4
commit f70b0ed910

View File

@ -510,8 +510,9 @@ void ExpressionAction::execute(Block & block, bool dry_run) const
if (can_replace && block.has(result_name))
{
auto & result = block.getByName(result_name);
result.type = block.getByName(source_name).type;
result.column = block.getByName(source_name).column;
const auto & source = block.getByName(source_name);
result.type = source.type;
result.column = source.column;
}
else
{