mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix.
This commit is contained in:
parent
bbeb3f61e5
commit
e0fb20f6d4
@ -140,7 +140,7 @@ void QueryAliasesMatcher<T>::visitOther(const ASTPtr & ast, Data & data)
|
||||
throw Exception(wrongAliasMessage(ast, aliases[alias], alias), ErrorCodes::MULTIPLE_EXPRESSIONS_FOR_ALIAS);
|
||||
}
|
||||
|
||||
aliases[ast->getColumnNameWithoutAlias()] = ast;
|
||||
aliases[alias] = ast;
|
||||
}
|
||||
|
||||
/** QueryAliasesVisitor is executed before ExecuteScalarSubqueriesVisitor.
|
||||
|
Loading…
Reference in New Issue
Block a user