mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-22 01:30:51 +00:00
dbms: addition to prev. revision [#METR-15913].
This commit is contained in:
parent
eaa412df2b
commit
2161eb4c0c
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user