File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1787,8 +1787,6 @@ public void testDurationArithmeticOverflowing(SessionFactoryScope scope) {
1787
1787
}
1788
1788
1789
1789
@ Test
1790
- @ SkipForDialect (dialectClass = GaussDBDialect .class ,
1791
- reason = "GaussDB driver does not support implicit type casting to Long or Duration." )
1792
1790
public void testDurationArithmeticWithLiterals (SessionFactoryScope scope ) {
1793
1791
scope .inTransaction (
1794
1792
session -> {
@@ -1891,8 +1889,6 @@ public void testDurationSubtractionWithTimeLiterals(SessionFactoryScope scope) {
1891
1889
@ SkipForDialect (dialectClass = SybaseDialect .class ,
1892
1890
matchSubTypes = true ,
1893
1891
reason = "numeric overflow" )
1894
- @ SkipForDialect (dialectClass = GaussDBDialect .class ,
1895
- reason = "numeric overflow" )
1896
1892
public void testDurationSubtractionWithDatetimeLiterals (SessionFactoryScope scope ) {
1897
1893
scope .inTransaction (
1898
1894
session -> {
@@ -1973,8 +1969,6 @@ public void testDurationArithmeticWithParameters(SessionFactoryScope scope) {
1973
1969
}
1974
1970
1975
1971
@ Test
1976
- @ SkipForDialect ( dialectClass = GaussDBDialect .class ,
1977
- reason = "GaussDB driver does not support implicit type casting to Long or Duration." )
1978
1972
public void testIntervalDiffExpressions (SessionFactoryScope scope ) {
1979
1973
scope .inTransaction (
1980
1974
session -> {
Original file line number Diff line number Diff line change 7
7
import java .sql .Types ;
8
8
9
9
import org .hibernate .boot .MetadataBuilder ;
10
+ import org .hibernate .community .dialect .GaussDBDialect ;
10
11
import org .hibernate .dialect .CockroachDialect ;
11
12
import org .hibernate .dialect .Dialect ;
12
13
import org .hibernate .dialect .HANADialect ;
@@ -63,6 +64,12 @@ else if ( PostgreSQLDialect.class.isInstance( dialect ) ) {
63
64
jdbcTypeRegistry .getDescriptor ( Types .BLOB )
64
65
);
65
66
}
67
+ else if ( GaussDBDialect .class .isInstance ( dialect ) ) {
68
+ assertSame (
69
+ BlobJdbcType .BLOB_BINDING ,
70
+ jdbcTypeRegistry .getDescriptor ( Types .BLOB )
71
+ );
72
+ }
66
73
else if ( SybaseDialect .class .isInstance ( dialect ) ) {
67
74
assertSame (
68
75
BlobJdbcType .PRIMITIVE_ARRAY_BINDING ,
You can’t perform that action at this time.
0 commit comments