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 @@ -1826,8 +1826,6 @@ public void testDurationArithmeticOverflowing(SessionFactoryScope scope) {
1826
1826
}
1827
1827
1828
1828
@ Test
1829
- @ SkipForDialect (dialectClass = GaussDBDialect .class ,
1830
- reason = "GaussDB driver does not support implicit type casting to Long or Duration." )
1831
1829
public void testDurationArithmeticWithLiterals (SessionFactoryScope scope ) {
1832
1830
scope .inTransaction (
1833
1831
session -> {
@@ -2019,8 +2017,6 @@ public void testDurationArithmeticWithParameters(SessionFactoryScope scope) {
2019
2017
}
2020
2018
2021
2019
@ Test
2022
- @ SkipForDialect ( dialectClass = GaussDBDialect .class ,
2023
- reason = "GaussDB driver does not support implicit type casting to Long or Duration." )
2024
2020
public void testIntervalDiffExpressions (SessionFactoryScope scope ) {
2025
2021
scope .inTransaction (
2026
2022
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