imporved sql parser.

This commit is contained in:
wenshao
2017-10-19 11:17:10 +08:00
parent 377d9346b8
commit d1b21e20c1
8 changed files with 253 additions and 12 deletions
@@ -666,7 +666,13 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
print0(ucase ? " OR " : " or ");
}
printExpr(left);
printOperator(operator);
print(' ');
if (operator == SQLBinaryOperator.Is) {
print('=');
} else {
printOperator(operator);
}
print(' ');
printParameter(value);
}
print(')');