mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser for postgresql
This commit is contained in:
@@ -583,15 +583,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
|
||||
if (expr instanceof SQLBinaryOpExpr) {
|
||||
SQLBinaryOpExpr binaryOpExpr = (SQLBinaryOpExpr) expr;
|
||||
switch (binaryOpExpr.getOperator()) {
|
||||
case BooleanAnd:
|
||||
case BooleanOr:
|
||||
case BooleanXor:
|
||||
needQuote = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
needQuote = binaryOpExpr.getOperator().isLogical();
|
||||
}
|
||||
|
||||
if (needQuote) {
|
||||
|
||||
Reference in New Issue
Block a user