mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
HHH-18635 Avoid using bigdatetime
on Sybase jconn when not necessary
This commit is contained in:
parent
1863fc75c4
commit
0330d54795
@ -123,13 +123,8 @@ protected void registerColumnTypes(TypeContributions typeContributions, ServiceR
|
||||
// But with jTDS we can't use them as the driver can't handle the types
|
||||
if ( getVersion().isSameOrAfter( 15, 5 ) && getDriverKind() != SybaseDriverKind.JTDS ) {
|
||||
ddlTypeRegistry.addDescriptor(
|
||||
CapacityDependentDdlType.builder( DATE, "bigdatetime", "bigdatetime", this )
|
||||
.withTypeCapacity( 3, "datetime" )
|
||||
.build()
|
||||
);
|
||||
ddlTypeRegistry.addDescriptor(
|
||||
CapacityDependentDdlType.builder( TIME, "bigdatetime", "bigdatetime", this )
|
||||
.withTypeCapacity( 3, "datetime" )
|
||||
CapacityDependentDdlType.builder( TIME, "bigtime", "bigtime", this )
|
||||
.withTypeCapacity( 3, "time" )
|
||||
.build()
|
||||
);
|
||||
ddlTypeRegistry.addDescriptor(
|
||||
|
@ -140,13 +140,8 @@ protected void registerColumnTypes(TypeContributions typeContributions, ServiceR
|
||||
// But with jTDS we can't use them as the driver can't handle the types
|
||||
if ( getDriverKind() != SybaseDriverKind.JTDS ) {
|
||||
ddlTypeRegistry.addDescriptor(
|
||||
CapacityDependentDdlType.builder( DATE, "bigdatetime", "bigdatetime", this )
|
||||
.withTypeCapacity( 3, "datetime" )
|
||||
.build()
|
||||
);
|
||||
ddlTypeRegistry.addDescriptor(
|
||||
CapacityDependentDdlType.builder( TIME, "bigdatetime", "bigdatetime", this )
|
||||
.withTypeCapacity( 3, "datetime" )
|
||||
CapacityDependentDdlType.builder( TIME, "bigtime", "bigtime", this )
|
||||
.withTypeCapacity( 3, "time" )
|
||||
.build()
|
||||
);
|
||||
ddlTypeRegistry.addDescriptor(
|
||||
|
@ -10,6 +10,7 @@
|
||||
import jakarta.persistence.Table;
|
||||
import org.hibernate.dialect.OracleDialect;
|
||||
import org.hibernate.dialect.PostgresPlusDialect;
|
||||
|
||||
import org.hibernate.testing.orm.junit.EntityManagerFactoryScope;
|
||||
import org.hibernate.testing.orm.junit.Jpa;
|
||||
import org.hibernate.testing.orm.junit.SkipForDialect;
|
||||
|
Loading…
x
Reference in New Issue
Block a user