Skip to content

Commit d57a07a

Browse files
committed
Fix tests after enabling parameter names.
Closes #644
1 parent 9b60809 commit d57a07a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/springframework/data/r2dbc/repository/query/StringBasedR2dbcQueryUnitTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void bindsComplexSpelQuery() {
230230
verifyNoMoreInteractions(bindSpec);
231231
}
232232

233-
@Test // gh-321
233+
@Test // gh-321, gh-644
234234
void skipsNonBindableParameters() {
235235

236236
StringBasedR2dbcQuery query = getQueryMethod("queryWithUnusedParameter", String.class, Sort.class);
@@ -241,7 +241,7 @@ void skipsNonBindableParameters() {
241241
assertThat(stringQuery.get()).isEqualTo("SELECT * FROM person WHERE lastname = :name");
242242
assertThat(stringQuery.bind(bindSpec)).isNotNull();
243243

244-
verify(bindSpec).bind(0, "Walter");
244+
verify(bindSpec).bind("name", "Walter");
245245
verifyNoMoreInteractions(bindSpec);
246246
}
247247

0 commit comments

Comments
 (0)