mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser. for issue #1970
This commit is contained in:
@@ -2206,10 +2206,14 @@ public class SchemaStatVisitor extends SQLASTVisitorAdapter {
|
||||
|
||||
setMode(x, Mode.Merge);
|
||||
|
||||
String ident = x.getInto().toString();
|
||||
|
||||
TableStat stat = getTableStat(ident);
|
||||
stat.incrementMergeCount();
|
||||
SQLTableSource into = x.getInto();
|
||||
if (into instanceof SQLExprTableSource) {
|
||||
String ident = ((SQLExprTableSource) into).getExpr().toString();
|
||||
TableStat stat = getTableStat(ident);
|
||||
stat.incrementMergeCount();
|
||||
} else {
|
||||
into.accept(this);
|
||||
}
|
||||
|
||||
x.getOn().accept(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user