bug fixed for not expr output.

This commit is contained in:
wenshao
2018-01-18 14:35:07 +08:00
parent f50c14d9ea
commit 8fa2643385
3 changed files with 139 additions and 1 deletions
@@ -1526,6 +1526,8 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
if (expr instanceof SQLBinaryOpExpr) {
SQLBinaryOpExpr binaryOpExpr = (SQLBinaryOpExpr) expr;
needQuote = binaryOpExpr.getOperator().isLogical();
} else if (expr instanceof SQLInListExpr || expr instanceof SQLNotExpr) {
needQuote = true;
}
if (needQuote) {
@@ -23,7 +23,12 @@ public enum VisitorFeature {
OutputUseInsertValueClauseOriginalString,
OutputSkipSelectListCacheString,
OutputSkipInsertColumnsString,
OutputParameterizedQuesUnMergeInList
OutputParameterizedQuesUnMergeInList,
/**
* @deprecated
*/
OutputKeepParenthesisWhenNotExpr
;
private VisitorFeature(){