We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.5.3
while(var8.hasNext()) { Expression expression = (Expression)var8.next(); if (expression instanceof JdbcParameter) { ++removeParamCount; } } 中有缺陷var8.next() 如果是 BinaryExpression 比如 update语句中带有 set column=column+?会有exception if (expression instanceof BinaryExpression) { BinaryExpression subtraction = (BinaryExpression)expression; boolean hasJdbcParameter = false; if (subtraction.getLeftExpression() instanceof JdbcParameter || subtraction.getRightExpression() instanceof JdbcParameter) { ++removeParamCount; } } else if (expression instanceof JdbcParameter) { ++removeParamCount; } 类似这样的修复,当然可能还有其他负责的expression 我没有去测试
No response
The text was updated successfully, but these errors were encountered:
#6430
Sorry, something went wrong.
No branches or pull requests
确认
当前程序版本
3.5.3
问题描述
while(var8.hasNext()) {
Expression expression = (Expression)var8.next();
if (expression instanceof JdbcParameter) {
++removeParamCount;
}
}
中有缺陷var8.next() 如果是 BinaryExpression 比如 update语句中带有 set column=column+?会有exception
if (expression instanceof BinaryExpression) {
BinaryExpression subtraction = (BinaryExpression)expression;
boolean hasJdbcParameter = false;
if (subtraction.getLeftExpression() instanceof JdbcParameter || subtraction.getRightExpression() instanceof JdbcParameter) {
++removeParamCount;
}
} else if (expression instanceof JdbcParameter) {
++removeParamCount;
}
类似这样的修复,当然可能还有其他负责的expression 我没有去测试
详细堆栈日志
No response
The text was updated successfully, but these errors were encountered: