Sybase ignores the last byte when persisting a byte [] with BinaryType and the last byte is 0

Description

this issue can be repro with org.hibernate.test.annotations.LobTest.testBinary().
and that test will throw an ArrayIndexOutOfBoundsException.

but if we change metadata[1] = (byte) 0; to metadata[1] = (byte) 2; (something else except 0), then the test will pass.

Environment

hibernate-core trunk + sybase ase 15

Activity

Show:
Gail Badner
January 11, 2011, 6:21 AM

Strong, Is this still an issue using 3.6.0?

Strong Liu
October 27, 2011, 2:08 PM
Brett Meyer
March 7, 2014, 5:30 PM

Bulk closing rejected tickets in "resolved" state.

Assignee

Strong Liu

Reporter

Strong Liu

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure