mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Merge pull request #4401 from 4ertus2/ast
fix UB in TranslateQualifiedNamesMatcher
This commit is contained in:
commit
6d5bbd642a
@ -75,6 +75,7 @@ std::vector<ASTPtr *> TranslateQualifiedNamesMatcher::visit(ASTIdentifier & iden
|
|||||||
/// In case if column from the joined table are in source columns, change it's name to qualified.
|
/// In case if column from the joined table are in source columns, change it's name to qualified.
|
||||||
if (best_table_pos && data.source_columns.count(identifier.shortName()))
|
if (best_table_pos && data.source_columns.count(identifier.shortName()))
|
||||||
IdentifierSemantic::setNeedLongName(identifier, true);
|
IdentifierSemantic::setNeedLongName(identifier, true);
|
||||||
|
if (!data.tables.empty())
|
||||||
IdentifierSemantic::setColumnNormalName(identifier, data.tables[best_table_pos].first);
|
IdentifierSemantic::setColumnNormalName(identifier, data.tables[best_table_pos].first);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user