InvalidDataAccessApiUsageException: Parameter value [%...%] did not match expected type #30558
Labels
for: external-project
For an external project and not something we can fix
status: duplicate
A duplicate of another issue
Hi,
after updating from Spring Boot 2.6.4 to 2.6.6 I observe the following issue:
I have a DataSupplierRepository with the method findByNameContainingIgnoreCaseOrderByNameAsc(String). The first call is working but all subsequent calls fail with the following error:
org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [%bbb%] did not match expected type [java.lang.Character (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [%bbb%] did not match expected type [java.lang.Character (n/a)]
I tested it on PostgreSQL and H2 with the same error in both cases. When I remove the "Containing" from the method's name, the problem disappears. I have set up an simple test project where you can execute the unit test DataSupplierRepositoryTest in order to reproduce the error: https://github.com/Iceforgedmvp/containing-bug
The text was updated successfully, but these errors were encountered: