You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "David Wisneski (JIRA)" <ji...@apache.org> on 2006/08/17 01:03:13 UTC

[jira] Created: (OPENJPA-17) bad sql with missing subquery produced with query with nested subqueries

bad sql with missing subquery produced with query with nested subqueries
------------------------------------------------------------------------

                 Key: OPENJPA-17
                 URL: http://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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENJPA-17) bad sql with missing subquery produced with query with nested subqueries

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Linskey updated OPENJPA-17:
-----------------------------------

    Fix Version/s: 0.9.7

> 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
>             Fix For: 0.9.7
>
>
> 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.