Skip to content

Commit 0ced169

Browse files
Grayswan4mp911de
authored andcommitted
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.
1 parent ae27048 commit 0ced169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/r2dbc/repository/query/PreparedOperationBindableQuery.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*
2626
* @author Roman Chigvintsev
2727
* @author Mark Paluch
28+
* @author Will Easterling
2829
*/
2930
class PreparedOperationBindableQuery implements BindableQuery {
3031

@@ -83,7 +84,7 @@ public void bindNull(String identifier, Class<?> type) {
8384

8485
@Override
8586
public void bindNull(int index, Class<?> type) {
86-
this.bindSpec = this.bindSpec.bind(index, type);
87+
this.bindSpec = this.bindSpec.bindNull(index, type);
8788
}
8889
}
8990
}

0 commit comments

Comments
 (0)