dbms: addition to prev. revision [#METR-15913].

This commit is contained in:
Alexey Milovidov 2015-04-10 03:57:42 +03:00
parent eaa412df2b
commit 2161eb4c0c

View File

@ -45,9 +45,9 @@ Block InterpreterInsertQuery::getSampleBlock()
/// Формируем блок, основываясь на именах столбцов из запроса /// Формируем блок, основываясь на именах столбцов из запроса
Block res; Block res;
for (const IAST & identifier : query.columns->children) for (const auto & identifier : query.columns->children)
{ {
std::string current_name = identifier.getColumnName(); std::string current_name = identifier->getColumnName();
/// В таблице нет столбца с таким именем /// В таблице нет столбца с таким именем
if (!table_sample.has(current_name)) if (!table_sample.has(current_name))