diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/H2SqlAstTranslator.java b/hibernate-core/src/main/java/org/hibernate/dialect/H2SqlAstTranslator.java index bf515b1b25..a70ca3cb01 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/H2SqlAstTranslator.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/H2SqlAstTranslator.java @@ -90,7 +90,9 @@ public class H2SqlAstTranslator extends AbstractSqlAstT @Override public void visitInSubQueryPredicate(InSubQueryPredicate inSubQueryPredicate) { final SqlTuple lhsTuple; - if ( ( lhsTuple = SqlTupleContainer.getSqlTuple( inSubQueryPredicate.getTestExpression() ) ) != null + // As of 1.4.200 this is supported + if ( getDialect().getVersion().isBefore( 1, 4, 200 ) + && ( lhsTuple = SqlTupleContainer.getSqlTuple( inSubQueryPredicate.getTestExpression() ) ) != null && lhsTuple.getExpressions().size() != 1 ) { inSubQueryPredicate.getTestExpression().accept( this ); if ( inSubQueryPredicate.isNegated() ) {