Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
10.7.1.1, 10.8.2.2
-
Normal
-
Release Note Needed, Repro attached
-
Embedded/Client difference, Wrong query result
Description
When ResultSet.getObject(int) is called on a BLOB column, the correct EmbedBlob object is returned. But if afterwards the ResultSet.getBytes(int) is called on the same row, the returned array contains invalid data - it is offset by 3 bytes and its size is incorrect.
The problem only occurs when the stored BLOB is large enough to be internally represented by stream and not by array of bytes (at least ~32KiB).
It seems that the getObject method shifts the stream position and therefore the getBytes method starts to read the data after the third byte, thus incorrectly calculating its length.
Attachments
Attachments
Issue Links
- is related to
-
DERBY-5696 Documentation on LOBs needs some fixes
- Closed
- relates to
-
DERBY-6793 Stream or LOG value cannot be retrieved more than once
- Open