bug fixed for mysql concat literal string.

This commit is contained in:
wenshao
2018-03-17 01:00:35 +08:00
parent b63a97c02f
commit 91b9b5eeb1
10 changed files with 362 additions and 49 deletions
@@ -55,7 +55,11 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
public static Boolean defaultPrintStatementAfterSemi;
static {
defaultPrintStatementAfterSemi = getBoolean(System.getProperties(), "druid.sql.output.printStatementAfterSemi"); // compatible for early versions
try {
defaultPrintStatementAfterSemi = getBoolean(System.getProperties(), "druid.sql.output.printStatementAfterSemi"); // compatible for early versions
} catch (Throwable ex) {
// skip
}
}
protected final Appendable appender;
@@ -1233,7 +1237,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
printExpr(x.getExpr());
if (x.isNot()) {
print(ucase ? " NOT" : " not");
print(ucase ? " NOT IN" : " not in");
} else {
print(ucase ? " IN" : " in");
}