[
https://issues.apache.org/jira/browse/DERBY-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504336
]
Anurag Shekhar commented on DERBY-2806:
---------------------------------------
This issue is not limited to clob. Blob too has similar problem. The
reproducible i attached has reproducible for both blob and clob. I will be
creating a separate issue to handle blob. Also this is not a regression this
issue is present in 10.2.2.0 and 10.1. I haven't tried any other release.
> calling getByteLength on org.apache.derby.impl.jdbc.StoreStreamClob makes
> BinaryStream, fetched before this call, unusable
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2806
> URL: https://issues.apache.org/jira/browse/DERBY-2806
> Project: Derby
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 10.3.0.0
> Reporter: Anurag Shekhar
> Assignee: Kristian Waagan
> Attachments: derby-2806-1a.diff, Derby2806.java
>
>
> StoreStreamClob.getByteLength first resets the internal stream and then reads
> the entire stream. Due to this any read on Stream obtained by
> StoreStreamClob.getRawByteStream returns -1.
> StoreStreamClob is a read only InternalClob, so probably keeping the length
> in a variable will be good idea.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.