Fix sybase LobSchemaUpdateTest failure
This commit is contained in:
parent
f68f6aae50
commit
aa5e1184a5
|
@ -70,6 +70,10 @@ public class SybaseASEDialect extends SybaseDialect {
|
||||||
Integer scale,
|
Integer scale,
|
||||||
Long length) {
|
Long length) {
|
||||||
switch ( jdbcType.getDdlTypeCode() ) {
|
switch ( jdbcType.getDdlTypeCode() ) {
|
||||||
|
case Types.NCLOB:
|
||||||
|
case Types.CLOB:
|
||||||
|
case Types.BLOB:
|
||||||
|
return Size.length( getDefaultLobLength() );
|
||||||
case Types.FLOAT:
|
case Types.FLOAT:
|
||||||
// Sybase ASE allows FLOAT with a precision up to 48
|
// Sybase ASE allows FLOAT with a precision up to 48
|
||||||
if ( precision != null ) {
|
if ( precision != null ) {
|
||||||
|
@ -164,6 +168,11 @@ public class SybaseASEDialect extends SybaseDialect {
|
||||||
return 16_384;
|
return 16_384;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long getDefaultLobLength() {
|
||||||
|
return Integer.MAX_VALUE;
|
||||||
|
}
|
||||||
|
|
||||||
private static boolean isAnsiNull(DialectResolutionInfo info) {
|
private static boolean isAnsiNull(DialectResolutionInfo info) {
|
||||||
final DatabaseMetaData databaseMetaData = info.getDatabaseMetadata();
|
final DatabaseMetaData databaseMetaData = info.getDatabaseMetadata();
|
||||||
if ( databaseMetaData != null ) {
|
if ( databaseMetaData != null ) {
|
||||||
|
|
Loading…
Reference in New Issue