In ASE, the VARBINARY type has max size equal to the pagesize. https://wiki.ispirer.com/sqlways/sybase/data-types/varbinary When a VARBINARY type is requested that is longer than the max size, we should use the IMAGE type instead: https://wiki.ispirer.com/sqlways/sybase/data-types/image This should mirror the behaviour of other Transact SQL dialects such as SQLServerDialect: https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java#L42 |