dbms: development [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2011-11-06 21:09:49 +00:00
parent aef03f0478
commit 82a82fdb66

View File

@ -238,7 +238,7 @@ void Expression::executeImpl(ASTPtr ast, Block & block, unsigned part_id)
ColumnWithNameAndType column;
column.type = node->return_type;
column.name = node->getAlias();
column.name = node->getColumnName();
size_t result_number = block.columns();
block.insert(column);
@ -255,7 +255,7 @@ void Expression::executeImpl(ASTPtr ast, Block & block, unsigned part_id)
ColumnWithNameAndType column;
column.column = node->type->createConstColumn(block.rows(), node->value);
column.type = node->type;
column.name = node->getAlias();
column.name = node->getColumnName();
block.insert(column);
}