diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java index 1c0655ea76..82e2f538bd 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java @@ -1030,6 +1030,7 @@ public class FunctionTests { @SkipForDialect(dialectClass = DerbyDialect.class, reason = "Derby doesn't support casting to binary types") @SkipForDialect(dialectClass = PostgreSQLDialect.class, matchSubTypes = true, reason = "PostgreSQL bytea doesn't have a length") @SkipForDialect(dialectClass = OracleDialect.class, reason = "Oracle cast to raw does not do truncatation") + @SkipForDialect(dialectClass = DB2Dialect.class, majorVersion = 10, minorVersion = 5, reason = "On this version the length of the cast to the parameter appears to be > 2") public void testCastBinaryWithLength(SessionFactoryScope scope) { scope.inTransaction( session -> {