File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1823,8 +1823,6 @@ public void testDurationArithmeticOverflowing(SessionFactoryScope scope) {
18231823 }
18241824
18251825 @ Test
1826- @ SkipForDialect (dialectClass = GaussDBDialect .class ,
1827- reason = "GaussDB driver does not support implicit type casting to Long or Duration." )
18281826 public void testDurationArithmeticWithLiterals (SessionFactoryScope scope ) {
18291827 scope .inTransaction (
18301828 session -> {
@@ -2016,8 +2014,6 @@ public void testDurationArithmeticWithParameters(SessionFactoryScope scope) {
20162014 }
20172015
20182016 @ Test
2019- @ SkipForDialect ( dialectClass = GaussDBDialect .class ,
2020- reason = "GaussDB driver does not support implicit type casting to Long or Duration." )
20212017 public void testIntervalDiffExpressions (SessionFactoryScope scope ) {
20222018 scope .inTransaction (
20232019 session -> {
Original file line number Diff line number Diff line change 77import java .sql .Types ;
88
99import org .hibernate .boot .MetadataBuilder ;
10+ import org .hibernate .community .dialect .GaussDBDialect ;
1011import org .hibernate .dialect .CockroachDialect ;
1112import org .hibernate .dialect .Dialect ;
1213import org .hibernate .dialect .HANADialect ;
@@ -63,6 +64,12 @@ else if ( PostgreSQLDialect.class.isInstance( dialect ) ) {
6364 jdbcTypeRegistry .getDescriptor ( Types .BLOB )
6465 );
6566 }
67+ else if ( GaussDBDialect .class .isInstance ( dialect ) ) {
68+ assertSame (
69+ BlobJdbcType .BLOB_BINDING ,
70+ jdbcTypeRegistry .getDescriptor ( Types .BLOB )
71+ );
72+ }
6673 else if ( SybaseDialect .class .isInstance ( dialect ) ) {
6774 assertSame (
6875 BlobJdbcType .PRIMITIVE_ARRAY_BINDING ,
You can’t perform that action at this time.
0 commit comments