Improve Sybase and SQLServer blob lob generation
This commit is contained in:
parent
55eea3d0df
commit
8663136608
|
@ -127,7 +127,13 @@ public class SQLServerLegacyDialect extends AbstractTransactSQLDialect {
|
|||
case BLOB:
|
||||
case CLOB:
|
||||
case NCLOB:
|
||||
return Size.length( getDefaultLobLength() );
|
||||
return super.resolveSize(
|
||||
jdbcType,
|
||||
javaType,
|
||||
precision,
|
||||
scale,
|
||||
length == null ? getDefaultLobLength() : length
|
||||
);
|
||||
default:
|
||||
return super.resolveSize( jdbcType, javaType, precision, scale, length );
|
||||
}
|
||||
|
|
|
@ -104,7 +104,13 @@ public class SybaseLegacyDialect extends AbstractTransactSQLDialect {
|
|||
case Types.NCLOB:
|
||||
case Types.CLOB:
|
||||
case Types.BLOB:
|
||||
return Size.length( getDefaultLobLength() );
|
||||
return super.resolveSize(
|
||||
jdbcType,
|
||||
javaType,
|
||||
precision,
|
||||
scale,
|
||||
length == null ? getDefaultLobLength() : length
|
||||
);
|
||||
case Types.FLOAT:
|
||||
// Sybase ASE allows FLOAT with a precision up to 48
|
||||
if ( precision != null ) {
|
||||
|
|
|
@ -148,7 +148,13 @@ public class SQLServerDialect extends AbstractTransactSQLDialect {
|
|||
case BLOB:
|
||||
case CLOB:
|
||||
case NCLOB:
|
||||
return Size.length( getDefaultLobLength() );
|
||||
return super.resolveSize(
|
||||
jdbcType,
|
||||
javaType,
|
||||
precision,
|
||||
scale,
|
||||
length == null ? getDefaultLobLength() : length
|
||||
);
|
||||
default:
|
||||
return super.resolveSize( jdbcType, javaType, precision, scale, length );
|
||||
}
|
||||
|
|
|
@ -73,7 +73,13 @@ public class SybaseASEDialect extends SybaseDialect {
|
|||
case Types.NCLOB:
|
||||
case Types.CLOB:
|
||||
case Types.BLOB:
|
||||
return Size.length( getDefaultLobLength() );
|
||||
return super.resolveSize(
|
||||
jdbcType,
|
||||
javaType,
|
||||
precision,
|
||||
scale,
|
||||
length == null ? getDefaultLobLength() : length
|
||||
);
|
||||
case Types.FLOAT:
|
||||
// Sybase ASE allows FLOAT with a precision up to 48
|
||||
if ( precision != null ) {
|
||||
|
|
Loading…
Reference in New Issue