mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
修改postVisit方法,增加isPrettyFormat判断; 修改visit(OracleSelectHierachicalQueryClause x)方法,替换NOCYCLE和PRIOR的输出顺序。
This commit is contained in:
+10
-8
@@ -192,10 +192,12 @@ public class OracleOutputVisitor extends SQLASTOutputVisitor implements OracleAS
|
||||
return;
|
||||
}
|
||||
|
||||
if (x.getParent() != null) {
|
||||
print(";");
|
||||
} else {
|
||||
println(";");
|
||||
if(isPrettyFormat()) {
|
||||
if (x.getParent() != null) {
|
||||
print(";");
|
||||
} else {
|
||||
println(";");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -445,14 +447,14 @@ public class OracleOutputVisitor extends SQLASTOutputVisitor implements OracleAS
|
||||
|
||||
print("CONNECT BY ");
|
||||
|
||||
if (x.isPrior()) {
|
||||
print("PRIOR ");
|
||||
}
|
||||
|
||||
if (x.isNoCycle()) {
|
||||
print("NOCYCLE ");
|
||||
}
|
||||
|
||||
if (x.isPrior()) {
|
||||
print("PRIOR ");
|
||||
}
|
||||
|
||||
x.getConnectBy().accept(this);
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user