PreparedOperationBindableQuery.bindNull(…) should call bindSpec.bindNull(…).

The wrong call is not caught by the compiler due to a bind method that has a signature of (String name, Object value).
Previously, bindNull(…) called bind(…).

Closes #587.
This commit is contained in:
Grayswan4
2021-04-21 18:33:09 -04:00
committed by Mark Paluch
parent ae2704876b
commit 0ced1692ae

View File

@@ -25,6 +25,7 @@ import org.springframework.util.Assert;
*
* @author Roman Chigvintsev
* @author Mark Paluch
* @author Will Easterling
*/
class PreparedOperationBindableQuery implements BindableQuery {
@@ -83,7 +84,7 @@ class PreparedOperationBindableQuery implements BindableQuery {
@Override
public void bindNull(int index, Class<?> type) {
this.bindSpec = this.bindSpec.bind(index, type);
this.bindSpec = this.bindSpec.bindNull(index, type);
}
}
}