bug fixed for SchemaStatVisitor

This commit is contained in:
高铁
2016-03-12 11:07:17 +08:00
parent c445f3965d
commit 643ff31da2
8 changed files with 59 additions and 14 deletions
@@ -903,6 +903,13 @@ public class SchemaStatVisitor extends SQLASTVisitorAdapter {
if (subQueryMap.containsKey(currentTable)) {
return false;
}
if (x.getParent() instanceof SQLAggregateExpr) {
SQLAggregateExpr aggregateExpr = (SQLAggregateExpr) x.getParent();
if ("count".equalsIgnoreCase(aggregateExpr.getMethodName())) {
return false;
}
}
if (currentTable != null) {
Column column = addColumn(currentTable, "*");
@@ -327,6 +327,7 @@ public class WebStatFilter extends AbstractWebStatImpl implements Filter {
this.status = statusCode;
}
@SuppressWarnings("deprecation")
public void setStatus(int statusCode, String statusMessage) {
super.setStatus(statusCode, statusMessage);
this.status = statusCode;