openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wisneski (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-17) bad sql with missing subquery produced with query with nested subqueries
Date Wed, 16 Aug 2006 23:03:13 GMT
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

        

Mime
View raw message