dbms: do not expand ALIAS column names. [#METR-16390]

This commit is contained in:
Andrey Mironov 2015-05-21 16:47:29 +03:00
parent 728d367d34
commit 8ddc49125c

View File

@ -281,7 +281,7 @@ void ExpressionAnalyzer::addStorageAliases()
return;
for (const auto & alias : storage->alias_columns)
aliases[alias.name] = storage->column_defaults[alias.name].expression;
(aliases[alias.name] = storage->column_defaults[alias.name].expression->clone())->setAlias(alias.name);
}