-
Notifications
You must be signed in to change notification settings - Fork 170
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
Length entity attribute misinterpreted as LENGTH(...) operation in JPQL #2187
Comments
We were able to recreate this issue. Below is the Box entity we created by referencing the entity present in Jakarta Data.
Here is the code where we executed the JPQL query:
This resulted in the following exception stack, which is the same as described in the issue:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EclipseLink is misterpreting the length entity attribute as a LENGTH(...) operation in,
UPDATE Box SET length = length + ?1, width = width - ?1, height = height * ?2
If "length" were followed by an open parenthesis, then it would be a LENGTH(string_expression) operation, but it is not followed by ( in this query. The correct parsing ought to be an entity attribute named length which has the optional entity identification variable omitted.
The text was updated successfully, but these errors were encountered: