File tree 1 file changed +2
-1
lines changed
hibernate-core/src/main/java/org/hibernate/sql/ast/spi
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7734,7 +7734,8 @@ else if ( needsTupleComparisonEmulation( operator ) ) {
7734
7734
else if ( ( rhsTuple = SqlTupleContainer .getSqlTuple ( comparisonPredicate .getRightHandExpression () ) ) != null ) {
7735
7735
final Expression lhsExpression = comparisonPredicate .getLeftHandExpression ();
7736
7736
7737
- if ( lhsExpression instanceof SelectStatement && ( (SelectStatement ) lhsExpression ).getQueryPart () instanceof QueryGroup ) {
7737
+ if ( lhsExpression instanceof SqlTupleContainer
7738
+ || lhsExpression instanceof SelectStatement && ( (SelectStatement ) lhsExpression ).getQueryPart () instanceof QueryGroup ) {
7738
7739
if ( rhsTuple .getExpressions ().size () == 1 ) {
7739
7740
// Special case for tuples with arity 1 as any DBMS supports scalar IN predicates
7740
7741
renderComparison (
You can’t perform that action at this time.
0 commit comments