Closed ajaypaul-ibm closed 1 month ago
Sorry, but I see issue in Your query.
FROM Prime WHERE (( numberId<=:max AND UPPER(romanNumeral) NOT LIKE '%VII' AND MOD(numberId,10)<>3 AND numberId >= :min)) ORDER BY even DESC, name
should be
FROM Prime WHERE numberId<=:max AND UPPER(romanNumeral) NOT LIKE '%VII' AND MOD(numberId,10)<>3 AND numberId >= :min ORDER BY even DESC, name
- no braces there
See attached testcase com.oracle.jpa.bugtest.TestNoAliasJPQL#queryTestThisWhere01 JakartaPersistence32POC.tar.gz
See Jakarta Persistence 3.2 Specification - 4.5. WHERE Clause chapter
About missing braces There is Jakarta Persistence 3.2 TCK test result against EclipseLink - 5.0.0.v202408081554-efbce400392c65c9440641ceae74889e157173fd https://ci.eclipse.org/eclipselink/job/TCK_JakartaEE11_JPA_run/39/artifact/SUMMARY_JDK21.TXT/*view*/ as You can see latest snapshot passed thru tests.
@rfelcman This test is still failing in the latest Snapshot version (5.0.0-20240808) . Please check
Nighty build with mentioned PR #2240 passed. You can try latest snapshot 5.0.0-20240820.093222-62.
We have identified a regression caused by the recent snapshot update. This regression specifically affects the more JPQL query, and it is currently blocking our ability to integrate the snapshot into Open Liberty. Consequently, we are unable to proceed with testing other critical fixes. An exception occurred while creating a query in EntityManager. Syntax error parsing [ FROM Prime WHERE (( numberId<=:max AND UPPER(romanNumeral) NOT LIKE '%VII' AND MOD(numberId,10)<>3 AND numberId >= :min)) ORDER BY even DESC, name]. Refer the logs: