-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Named Parameter in countQuery not recognized unless used in value #3293
Comments
Thanks for reporting - we're looking into this. |
The problem is that the count query is using the |
Thank you all for the support! |
Thank you! I was following this thread and although I confirm this is fixed in Spring Boot version 3.3.3, I wonder why a silent warning is now thrown in the logs? 2024-09-04 15:14:52.447 INFO 1379820 --- [tp1011254112-52] j.r.q.QueryParameterSetter$ErrorHandling : Silently ignoring |
Hey everyone, I'm encountering an issue when attempting to use a named parameter inside the countQuery that is not utilized in the value clause. This may be related to issue #2475. Currently, I'm unsure whether this is a Hibernate or a Spring Data JPA issue.
Problem
Inability to use a named parameter inside a countQuery if that same parameter is not present in the value.
Demonstration
Below is a snippet demonstrating the issue:
When executing the following search: http://localhost:8081/users?kinds=REGULAR,ADMIN, I encounter this exception:
Adding this line to my query resolves the issue:
The text was updated successfully, but these errors were encountered: