-
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
BadJpqlGrammarException in 3.1.0 when using "round" in a select query #2964
Labels
in: query-parser
Everything related to parsing JPQL or SQL
type: regression
A regression from a previous release
Milestone
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
May 22, 2023
Can you please provide the entire SQL statement instead of the trimmed down content? |
mp911de
added
type: regression
A regression from a previous release
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
May 22, 2023
leads to:
|
gregturn
added a commit
that referenced
this issue
May 22, 2023
Because ROUND is a reserved word yet is NOT on the list of approved functions, it fails to get parsed. Simply dropping it from the list of reserved words makes it succeed in the HQL query parser. See #2964
That's merged to |
Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: query-parser
Everything related to parsing JPQL or SQL
type: regression
A regression from a previous release
When I'm using
@Query("SELECT ROUND<.....>")
in a jpa repository with version 3.1.0, I'm getting the following exception:ROUND should probably still work. At least I didn't find anything in the release notes that this feature was removed. One reason for that could be that the links to the documentation under https://github.com/spring-projects/spring-data-jpa/releases are dead, though.
The text was updated successfully, but these errors were encountered: