[ 
https://issues.apache.org/jira/browse/OPENJPA-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Dick updated OPENJPA-864:
---------------------------------

    Affects Version/s: 1.2.0

> 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, 1.2.0
>            Reporter: Michael Dick
>            Assignee: Michael Dick
>             Fix For: 1.0.4, 1.2.1, 1.3.0, 2.0.0
>
>
> 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.

Reply via email to