You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Michael Dick (JIRA)" <ji...@apache.org> on 2009/01/23 15:50:59 UTC
[jira] Closed: (OPENJPA-864) Subquery problems with SYNTAX_DATABASE
(Oracle)
[ https://issues.apache.org/jira/browse/OPENJPA-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dick closed OPENJPA-864.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
1.3.0
1.2.1
> 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.