improved sql parser.

This commit is contained in:
wenshao
2017-09-05 11:40:36 +08:00
parent 1ae0aea5c8
commit 6545e23629
4 changed files with 35 additions and 20 deletions
@@ -1649,6 +1649,10 @@ class SchemaResolveVisitorFactory {
if (ctxTable instanceof SQLJoinTableSource) {
String alias = tableSource.computeAlias();
if (alias == null) {
return;
}
SQLPropertyExpr propertyExpr = new SQLPropertyExpr(new SQLIdentifierExpr(alias), ident, hash);
propertyExpr.setResolvedColumn(x.getResolvedColumn());
propertyExpr.setResolvedTableSource(x.getResolvedTableSource());