| Summary: | Syntax eror in generated SQL from JPQL query | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Jérôme SALLES <jfp.salles> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | NEW --- | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P4 | CC: | jamesssss, jfp.salles, tom.ware | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Jérôme SALLES
Created attachment 210146 [details]
The JPQL query
Created attachment 210147 [details]
The TSQL query
The only exception i have is when database server indicate that the query is syntaxically incorrect. There is no exception from Eclipselink at translation. The documentation says that i was trying to do is not possible. In my JPQL, i check if an object (let say x) is returned from a subquery. I write it like this : WHERE x IN (SELECT y FROM ...) The documentation for the IN keyword in JPQL language reference (http://docs.oracle.com/cd/E11035_01/kodo41/full/html/ejb3_langref.html#ejb3_langref_in) says that IN keywork can test attributes only. That's why translation doesn't work. However, Eclipselink should throw an exception when parsing this... Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next. I think this has been fixed in 2.4, please try on the latest nightly build. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |