mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for mysql sql parameterized.
This commit is contained in:
@@ -479,7 +479,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
SQLExpr left = binaryItem.getLeft();
|
||||
SQLExpr right = binaryItem.getRight();
|
||||
|
||||
if (right instanceof SQLLiteralExpr) {
|
||||
if (right instanceof SQLLiteralExpr && !(right instanceof SQLNullExpr)) {
|
||||
if (left instanceof SQLLiteralExpr) {
|
||||
if (literalItems == null) {
|
||||
literalItems = new ArrayList<SQLBinaryOpExpr>();
|
||||
|
||||
Reference in New Issue
Block a user