mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-23 11:47:40 +00:00
Fix sybase LobSchemaUpdateTest failure
This commit is contained in:
parent
1dc67a323f
commit
dbaccbe6e0
@ -69,6 +69,10 @@ public Size resolveSize(
|
||||
Integer scale,
|
||||
Long length) {
|
||||
switch ( jdbcType.getDdlTypeCode() ) {
|
||||
case Types.NCLOB:
|
||||
case Types.CLOB:
|
||||
case Types.BLOB:
|
||||
return Size.length( getDefaultLobLength() );
|
||||
case Types.FLOAT:
|
||||
// Sybase ASE allows FLOAT with a precision up to 48
|
||||
if ( precision != null ) {
|
||||
@ -163,6 +167,11 @@ public int getMaxVarcharLength() {
|
||||
return 16_384;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getDefaultLobLength() {
|
||||
return Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
private static boolean isAnsiNull(DialectResolutionInfo info) {
|
||||
final DatabaseMetaData databaseMetaData = info.getDatabaseMetadata();
|
||||
if ( databaseMetaData != null ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user