Skip to content

Commit cbbe0fd

Browse files
committed
HHH-19596 Copy & paste org.hibernate.testing.orm.junit.DialectFeatureChecks.SupportsTypedArrays from main branch
1 parent 20cf840 commit cbbe0fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,12 @@ public boolean apply(Dialect dialect) {
695695
}
696696
}
697697

698+
public static class SupportsTypedArrays implements DialectFeatureCheck {
699+
public boolean apply(Dialect dialect) {
700+
return dialect.getPreferredSqlTypeCodeForArray() == SqlTypes.ARRAY;
701+
}
702+
}
703+
698704
public static class SupportsUpsertOrMerge implements DialectFeatureCheck {
699705
public boolean apply(Dialect dialect) {
700706
return !( dialect instanceof DerbyDialect );

0 commit comments

Comments
 (0)