mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for mysql concat literal string.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user