Subquery problems with SYNTAX_DATABASE (Oracle)
-----------------------------------------------
Key: OPENJPA-864
URL: https://issues.apache.org/jira/browse/OPENJPA-864
Project: OpenJPA
Issue Type: Bug
Affects Versions: 1.0.3
Reporter: Michael Dick
Assignee: Michael Dick
Fix For: 1.0.4
The following query does not generate the correct SQL with Oracle :
"SELECT e,d from Employee e, Dependent d "
+ "WHERE e.empId = :empid "
+ "AND d.id.empid = (SELECT MAX (e2.empId) FROM Employee e2) "
+ "AND d.id.effDate > :minDate "
+ "AND d.id.effDate < :maxDate ";
The problem will exist with any DBDictionary that uses
JoinSyntaxes.SYNTAX_DATABASE (no joins will be created for Dependent).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.