clickhouse: fixed aliases in subqueries [#CONV-6727].

This commit is contained in:
Michael Kolupaev 2013-02-11 16:54:55 +00:00
parent 4ed6c86648
commit bebe6932fd

View File

@ -521,7 +521,7 @@ void Expression::getSampleBlockImpl(ASTPtr ast, Block & res)
{
if (ident->kind == ASTIdentifier::Column)
{
col.name = ident->name;
col.name = ident->getAlias();
col.type = ident->type;
res.insert(col);
}