mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user