Skip to content

Commit

Permalink
bugfix for SQLServerParameterizedOutputVisitor hex
Browse files Browse the repository at this point in the history
  • Loading branch information
Yako authored and Yako committed Sep 18, 2014
1 parent 663a1c3 commit 0f4af8e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr;
import com.alibaba.druid.sql.ast.expr.SQLCharExpr;
import com.alibaba.druid.sql.ast.expr.SQLHexExpr;
import com.alibaba.druid.sql.ast.expr.SQLInListExpr;
import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
import com.alibaba.druid.sql.ast.expr.SQLNCharExpr;
Expand Down Expand Up @@ -99,5 +100,13 @@ public boolean visit(SQLVariantRefExpr x) {

return ParameterizedOutputVisitorUtils.visit(this, x);
}

public boolean visit(SQLHexExpr x) {
if (!ParameterizedOutputVisitorUtils.checkParameterize(x)) {
return super.visit(x);
}

return ParameterizedOutputVisitorUtils.visit(this, x);
}

}

0 comments on commit 0f4af8e

Please sign in to comment.