improved sql parser.

This commit is contained in:
wenshao
2018-04-24 13:47:12 +08:00
parent 236226991b
commit c8d8409d30
9 changed files with 99 additions and 20 deletions
@@ -480,12 +480,14 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
quote = true;
}
if (quote) {
print('(');
printExpr(testExpr);
print(')');
} else {
printExpr(testExpr);
if (testExpr != null) {
if (quote) {
print('(');
printExpr(testExpr);
print(')');
} else {
printExpr(testExpr);
}
}
if (x.isNot()) {