mysql parser support Hierarchical clause.

This commit is contained in:
wenshao
2017-04-24 00:39:18 +08:00
parent 915854c7c8
commit d3bacf9e70
13 changed files with 176 additions and 88 deletions
@@ -158,6 +158,8 @@ public class MySqlSelectParser extends SQLSelectParser {
parseWhere(queryBlock);
parseHierachical(queryBlock);
parseGroupBy(queryBlock);
queryBlock.setOrderBy(this.exprParser.parseOrderBy());
@@ -279,6 +279,8 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
x.getWhere().accept(this);
}
printHierarchical(x);
if (x.getGroupBy() != null) {
println();
x.getGroupBy().accept(this);