Skip to content

Commit

Permalink
Merge pull request alibaba#667 from wenshao/master
Browse files Browse the repository at this point in the history
bug fixed for schema stat visitor
  • Loading branch information
wenshao committed Sep 27, 2014
2 parents 3cd645e + d425942 commit 05ac271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,20 +265,7 @@ public void endVisit(OracleSelect x) {
}

public boolean visit(OracleSelect x) {
setCurrentTable(x);

if (x.getOrderBy() != null) {
x.getOrderBy().setParent(x);
}

accept(x.getWithSubQuery());
accept(x.getQuery());

setCurrentTable(x, (String) x.getQuery().getAttribute("table"));

accept(x.getOrderBy());

return false;
return visit((SQLSelect) x);
}

public void endVisit(SQLSelect x) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ public boolean visit(SQLSelect x) {
x.getOrderBy().setParent(x);
}

accept(x.getWithSubQuery());
accept(x.getQuery());

String originalTable = getCurrentTable();
Expand Down

0 comments on commit 05ac271

Please sign in to comment.