mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: "Parameter index out of range"。
This commit is contained in:
parent
dd1e745516
commit
14f07bd7e3
@ -100,7 +100,11 @@ class WrapperUtil {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
// column = user_name; logic = eq; value = null
|
// column = user_name; logic = eq; value = null
|
||||||
// sql: user_name = null
|
// sql: user_name = null
|
||||||
if (condition.checkEffective() && condition.getLogic() != null) {
|
String logic;
|
||||||
|
if (condition.checkEffective()
|
||||||
|
&& (logic = condition.getLogic()) != null
|
||||||
|
&& !logic.equals(SqlConsts.IS_NULL)
|
||||||
|
&& !logic.equals(SqlConsts.IS_NOT_NULL)) {
|
||||||
params.add(null);
|
params.add(null);
|
||||||
}
|
}
|
||||||
getValues(condition.next, params);
|
getValues(condition.next, params);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user