Details
Assignee
UnassignedUnassignedReporter
Christian BeikovChristian BeikovAffects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Christian Beikov
Christian BeikovAffects versions
Priority
Created May 1, 2024 at 12:14 AM
Updated December 10, 2024 at 9:08 AM
A JPA Criteria query that use a subquery as value to an IN predicate will run into an error on Sybase if the subquery returns more than one row, because in SQL, we will render it as
where id in ((select ...))
i.e. with double parenthesis.With HQL, this is not a problem, because there we construct the
SqmInSubQueryPredicate
. If we have to treat IN predicates with a single subquery value specially for this case anyway, we should discuss ifSqmInSubQueryPredicate
can be removed.