db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2891) Clob.getCharacterStream(long,long) ignores position parameter for large (>32k) CLOBs
Date Tue, 03 Jul 2007 08:18:05 GMT

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

Knut Anders Hatlen updated DERBY-2891:

    Attachment: d2891.diff

The bug is caused by a copy/paste error between two almost identical constructors in ClobUpdatableReader.
The attached patch fixes the bug, and also makes one of the constructors only forward calls
to the other, similar constructor. I have not run any regression tests on the patch.

> Clob.getCharacterStream(long,long) ignores position parameter for large (>32k) CLOBs
> ------------------------------------------------------------------------------------
>                 Key: DERBY-2891
>                 URL: https://issues.apache.org/jira/browse/DERBY-2891
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions:
>         Environment: JDBC 4.0
>            Reporter: Knut Anders Hatlen
>             Fix For:,
>         Attachments: ClobTest.java, d2891.diff
> When a CLOB larger than 32k is fetched, Clob.getCharacterStream(long,long) ignores the
position parameter and starts reading from the beginning of the CLOB. Will attach a repro.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message