[hibernate-issues] [JIRA] (HHH-13969) Fix handling of large varbinary for SAP/Sybase ASE

Daniel Cao (JIRA) jira at hibernate.atlassian.net
Wed Apr 22 17:39:27 EDT 2020


Daniel Cao ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ea0b6f71f32260c13fca17c ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZjc1M2FiMzM0NzkzNGRhNWJiNzc3ZDVhNDkwYzMxYzkiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-13969?atlOrigin=eyJpIjoiZjc1M2FiMzM0NzkzNGRhNWJiNzc3ZDVhNDkwYzMxYzkiLCJwIjoiaiJ9 ) HHH-13969 ( https://hibernate.atlassian.net/browse/HHH-13969?atlOrigin=eyJpIjoiZjc1M2FiMzM0NzkzNGRhNWJiNzc3ZDVhNDkwYzMxYzkiLCJwIjoiaiJ9 ) Fix handling of large varbinary for SAP/Sybase ASE ( https://hibernate.atlassian.net/browse/HHH-13969?atlOrigin=eyJpIjoiZjc1M2FiMzM0NzkzNGRhNWJiNzc3ZDVhNDkwYzMxYzkiLCJwIjoiaiJ9 )

Issue Type: Bug Assignee: Unassigned Created: 22/Apr/2020 14:39 PM Priority: Major Reporter: Daniel Cao ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ea0b6f71f32260c13fca17c )

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

( https://hibernate.atlassian.net/browse/HHH-13969#add-comment?atlOrigin=eyJpIjoiZjc1M2FiMzM0NzkzNGRhNWJiNzc3ZDVhNDkwYzMxYzkiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13969#add-comment?atlOrigin=eyJpIjoiZjc1M2FiMzM0NzkzNGRhNWJiNzc3ZDVhNDkwYzMxYzkiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:0a83519 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200422/c8653360/attachment.html 


More information about the hibernate-issues mailing list