db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2806) calling getByteLength on org.apache.derby.impl.jdbc.StoreStreamClob makes BinaryStream, fetched before this call, unusable
Date Fri, 15 Jun 2007 00:12:25 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kristian Waagan updated DERBY-2806:
-----------------------------------

    Attachment: derby-2806-3a-test_fix_and_cleanup.diff

'derby-2806-3a-test_fix_and_cleanup.diff' is a patch fixing the ClobUpdatableReaderTest failure.
I had forgotten to turn off autocommit and do some resource cleanup, but for some reason it
worked in the JVM I used when I wrote and ran the test.
I also cleaned up the patch in general, using the convenience methods instead of keeping a
reference to the connection and calling the methods on it directly.

Sorry for the unnecessary noise :(

> 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.2.2.0, 10.3.0.0
>            Reporter: Anurag Shekhar
>            Assignee: Kristian Waagan
>             Fix For: 10.3.0.0
>
>         Attachments: derby-2806-1a.diff, derby-2806-2a.diff, derby-2806-2a.stat, derby-2806-3a-test_fix_and_cleanup.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.


Mime
View raw message