mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-16974 IllegalStateException Unsupported tuple comparison combination
This commit is contained in:
parent
53f22d7dec
commit
e9e601d884
@ -8276,7 +8276,8 @@ else if ( needsTupleComparisonEmulation( operator ) ) {
|
||||
else if ( ( rhsTuple = SqlTupleContainer.getSqlTuple( comparisonPredicate.getRightHandExpression() ) ) != null ) {
|
||||
final Expression lhsExpression = comparisonPredicate.getLeftHandExpression();
|
||||
|
||||
if ( lhsExpression instanceof SelectStatement && ( (SelectStatement) lhsExpression ).getQueryPart() instanceof QueryGroup ) {
|
||||
if ( lhsExpression instanceof SqlTupleContainer
|
||||
|| lhsExpression instanceof SelectStatement && ( (SelectStatement) lhsExpression ).getQueryPart() instanceof QueryGroup ) {
|
||||
if ( rhsTuple.getExpressions().size() == 1 ) {
|
||||
// Special case for tuples with arity 1 as any DBMS supports scalar IN predicates
|
||||
renderComparison(
|
||||
|
Loading…
x
Reference in New Issue
Block a user