mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for not expr output.
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user