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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user