improved sql parser.

This commit is contained in:
wenshao
2017-09-12 11:15:41 +08:00
parent 7278cd3e94
commit 41be4b5b51
11 changed files with 594 additions and 65 deletions
@@ -1541,9 +1541,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
}
}
print('.');
String name = x.getName();
printName(x, name);
print0(x.getName());
return false;
}
@@ -1899,11 +1897,13 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
protected void printTableSourceExpr(SQLExpr expr) {
if (exportTables) {
if (expr instanceof SQLIdentifierExpr) {
}
addTable(expr.toString());
}
if (isEnabled(VisitorFeature.OutputDesensitize)) {
SQLExpr owner = null;
String ident = null;
if (expr instanceof SQLIdentifierExpr) {
ident = ((SQLIdentifierExpr) expr).getName();