dbms: simplify ITableDeclaration::getColumnsList

This commit is contained in:
Andrey Mironov 2015-10-15 20:58:28 +03:00
parent b0d70b6753
commit 3b879c444d

View File

@ -13,10 +13,9 @@ namespace DB
NamesAndTypesList ITableDeclaration::getColumnsList() const
{
auto columns = getColumnsListImpl();
columns.insert(std::end(columns), std::begin(materialized_columns), std::end(materialized_columns));
const auto & range = getColumnsListIterator();
return columns;
return { std::begin(range), std::end(range) };
}