HHH-16974 IllegalStateException Unsupported tuple comparison combination

This commit is contained in:
Andrea Boriero 2024-02-06 14:17:51 +01:00 committed by Christian Beikov
parent 53f22d7dec
commit e9e601d884
1 changed files with 2 additions and 1 deletions

View File

@ -8276,7 +8276,8 @@ public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> implemen
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(