-
Notifications
You must be signed in to change notification settings - Fork 1.5k
EQL parser fails to parse LIKE
with ESCAPE
clause
#3873
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
Comments
LIKE
with ESCAPE
clause
With version 3.4, we introduced eager parsing and that is why all statements are parsed and validated on startup. Previously (especially with version 3.3) the parser shortcomings haven't surfaced because of deferred parsing. |
Thank you! Could you please provide an ETA for 3.3.12 and 3.4.6 to be released? |
These are scheduled for Friday, see also https://spring.io/projects#release-calendar for the full release calendar. |
Hi!
EqlEscape_jpa_2_4_19_working.zip
EqlEscape_jpa_3_4_5_not_working.zip
We're moving our project to spring-boot and newer spring. We're limited to use EclipseLink, so can't move to Hibernate.
Previously we used spring-data-jpa of 2.4.9 version and everything worked fine. Please find EqlEscape_jpa_2_4_19_working.zip sample attached.
Now we're trying to migrate to spring-boot and update spring-data-jpa to 3.4.5 version. Please find EqlEscape_jpa_3_4_5_not_working.zip sample attached. Having rest of the code the same producing the following exception on 3.4.5:
when change ESCAPE character from \ to any other symbol, no exception is thrown.
I've debugged a bit and found out that spring-data-jpa of 2.4.9 version's org/springframework/data/jpa/repository/query/StringQuery.java doesn't have JpaQueryEnhancer and Hql/Eql/Jpql parsers, and with spring-data-jpa to 3.4.5 version at org/springframework/data/jpa/repository/query/StringQuery.java at line 98 there is added:
this.queryEnhancer = QueryEnhancerFactory.forQuery(this);
that leads to EqlParser and fails when EclipseLink is used.
If comment out:
in provided EqlEscape_jpa_3_4_5_not_working.zip sample's gradle file, then HqlParser is used and issue doesn't occur.
I found similar issues that seem to be resolved:
#2955
#3040
Thank you for your help!
Regards,
Olga
The text was updated successfully, but these errors were encountered: