mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved repository resolve support
This commit is contained in:
@@ -1169,6 +1169,11 @@ public class SQLSelectQueryBlock extends SQLObjectImpl implements SQLSelectQuery
|
||||
SQLObject object = resolveColum(columnNameHash);
|
||||
if (object instanceof SQLColumnDefinition) {
|
||||
return (SQLColumnDefinition) object;
|
||||
} else if (object instanceof SQLSelectItem) {
|
||||
SQLExpr expr = ((SQLSelectItem) object).getExpr();
|
||||
if (expr instanceof SQLName) {
|
||||
return ((SQLName) expr).getResolvedColumn();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user