mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -924,6 +924,17 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
}
|
||||
}
|
||||
|
||||
if (param instanceof SQLBinaryOpExpr) {
|
||||
SQLBinaryOpExpr binaryOpExpr = (SQLBinaryOpExpr) param;
|
||||
SQLBinaryOperator op = binaryOpExpr.getOperator();
|
||||
if (op == SQLBinaryOperator.BooleanAnd || op == SQLBinaryOperator.BooleanOr) {
|
||||
incrementIndent();
|
||||
param.accept(this);
|
||||
decrementIndent();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
param.accept(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user