Merge pull request #2224 from blueswhisper/master

fix #2222
This commit is contained in:
温绍
2018-02-11 16:18:52 +08:00
committed by GitHub
2 changed files with 35 additions and 2 deletions
@@ -1327,9 +1327,9 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
}
protected void printInteger(SQLIntegerExpr x, boolean parameterized) {
long val = x.getNumber().longValue();
String val = x.getNumber().toString();
if (val == 1) {
if ("1".equals(val)) {
if (JdbcConstants.ORACLE.equals(dbType)) {
SQLObject parent = x.getParent();
if (parent instanceof SQLBinaryOpExpr) {