bug fixed for sql parsre parameterized.

This commit is contained in:
wenshao
2017-06-25 18:38:12 +08:00
parent 5a913ded09
commit 4decf975c6
11 changed files with 58 additions and 27 deletions
@@ -669,10 +669,9 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
public boolean visit(SQLVariantRefExpr x) {
{
int parametersSize = this.getParametersSize();
int index = x.getIndex();
if (index >= 0 && index < parametersSize) {
if (inputParameters != null && index < inputParameters.size()) {
return super.visit(x);
}