improved sql parser.

This commit is contained in:
wenshao
2017-09-01 21:58:09 +08:00
parent e0b0cca579
commit 29fbe65a77
34 changed files with 538 additions and 272 deletions
@@ -139,9 +139,7 @@ public class PGSchemaStatVisitor extends SchemaStatVisitor implements PGASTVisit
SQLName tableName = x.getTableName();
{
String ident = tableName.toString();
TableStat stat = getTableStat(ident);
TableStat stat = getTableStat(tableName);
stat.incrementInsertCount();
}
@@ -181,9 +179,7 @@ public class PGSchemaStatVisitor extends SchemaStatVisitor implements PGASTVisit
x.getWith().accept(this);
}
String ident = x.getTableName().toString();
TableStat stat = getTableStat(ident);
TableStat stat = getTableStat(x.getTableName());
stat.incrementUpdateCount();
accept(x.getFrom());