Duplicate
Details
Assignee
UnassignedUnassignedReporter
Robert DiFalcoRobert DiFalcoComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Robert DiFalco
Robert DiFalcoComponents
Affects versions
Priority
Created December 24, 2013 at 12:11 AM
Updated January 2, 2014 at 3:06 PM
Resolved January 2, 2014 at 3:06 PM
If I try to execute a NamedQuery with a subselect I get the exception in the subject line. Note that this same code base worked fine on 4.2.8.Final. Here's an example query that will give you this exception:
@NamedQuery(
name = "Contact.updateBlocked",
query = "UPDATE ContactEntity SET blocked = true WHERE " +
"id IN :ids OR " +
"(owner.id = :ownerId AND " +
"user != null and user IN ( SELECT c1.user " +
"FROM ContactEntity c1 WHERE c1.id IN (:ids)))" ),
If there is no sub-select the query works. This worked fine in 4.2.8.Final.