mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved oracle sql parser. issue #1400
This commit is contained in:
@@ -1232,6 +1232,14 @@ public class SchemaStatVisitor extends SQLASTVisitorAdapter {
|
||||
putAliasMap(this.aliasMap, x.getAlias(), tableName);
|
||||
}
|
||||
|
||||
if (x.getTableSource() instanceof SQLSubqueryTableSource) {
|
||||
SQLSelectQuery selectQuery = ((SQLSubqueryTableSource) x.getTableSource()).getSelect().getQuery();
|
||||
if (selectQuery instanceof SQLSelectQueryBlock) {
|
||||
SQLSelectQueryBlock subQueryBlock = ((SQLSelectQueryBlock) selectQuery);
|
||||
subQueryBlock.getWhere().accept(this);
|
||||
}
|
||||
}
|
||||
|
||||
TableStat stat = getTableStat(tableName);
|
||||
stat.incrementDeleteCount();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user