HHH-18635 Avoid using `bigdatetime` on Sybase jconn when not necessary
This commit is contained in:
parent
4fbc8f96ef
commit
a6f4bd7a14
|
@ -123,13 +123,8 @@ public class SybaseASELegacyDialect extends SybaseLegacyDialect {
|
|||
// 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 @@ public class SybaseASEDialect extends SybaseDialect {
|
|||
// 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.Id;
|
|||
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…
Reference in New Issue