openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OPENJPA-17) bad sql with missing subquery produced with query with nested subqueries
Date Thu, 18 Sep 2008 15:32:44 GMT

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

Michael Dick resolved OPENJPA-17.
---------------------------------

    Resolution: Cannot Reproduce

I believe this issue is fixed. A similar query with the exists clause generates the correct
SQL. If you believe this problem is still valid please re-open the issue and attach a testcase.


> bad sql with missing subquery produced with query with nested subqueries
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-17
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-17
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: David Wisneski
>
> EJBQL:  "select c from Customer c where "+
>            "exists ( select o from Order o where o.delivered=false and "+ 
>           " exists ( select c from LineItem c where c.product.backorder >0))";
> SQL generated :   Note that the second EXISTS() subquery is missing. 
> DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLE
> RRMC: );red = ? AND EXISTS (;<query_expr_body> {prepstmnt 1454528178 SELECT t3.id,
t3.name, t3.rating FROM Customer t3 W
> HERE (EXISTS (SELECT t0.oid FROM Order t0 WHERE (t0.delivered = ? AND EXISTS ()))) [params=(int)
0]} [code=-104, state=4
> 2601]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message