Skip to content

Commit 3863d8f

Browse files
committed
Fix wrong PostgreSQL skip for old version
1 parent 7fcdb3e commit 3863d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/function/array/ArrayTrimTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ public void testTrimAll(SessionFactoryScope scope) {
8686
}
8787

8888
@Test
89-
@SkipForDialect(dialectClass = PostgreSQLDialect.class, majorVersion = 14, versionMatchMode = VersionMatchMode.SAME_OR_NEWER, reason = "The PostgreSQL emulation for version < 14 doesn't throw an error")
90-
@SkipForDialect(dialectClass = PostgresPlusDialect.class, majorVersion = 14, versionMatchMode = VersionMatchMode.SAME_OR_NEWER, reason = "The PostgreSQL emulation for version < 14 doesn't throw an error")
89+
@SkipForDialect(dialectClass = PostgreSQLDialect.class, majorVersion = 14, versionMatchMode = VersionMatchMode.OLDER, reason = "The PostgreSQL emulation for version < 14 doesn't throw an error")
90+
@SkipForDialect(dialectClass = PostgresPlusDialect.class, majorVersion = 14, versionMatchMode = VersionMatchMode.OLDER, reason = "The PostgreSQL emulation for version < 14 doesn't throw an error")
9191
@SkipForDialect(dialectClass = CockroachDialect.class, reason = "The Cockroach emulation doesn't throw an error")
9292
public void testTrimOutOfRange(SessionFactoryScope scope) {
9393
scope.inSession( em -> {

0 commit comments

Comments
 (0)