[
https://issues.apache.org/jira/browse/DERBY-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Knut Anders Hatlen updated DERBY-2891:
--------------------------------------
Attachment: ClobTest.java
Repro for the bug. It creates a table which contains two CLOBs. One is 10
characters long and contains the string "1234567890". The other one is 33000
characters long and contains the same string as the first CLOB repeated 3300
times. Clob.getCharacterStream(4,3) is called on both CLOBs, and the contents
of the streams are printed.
For the small CLOB, "456" is printed. For the large CLOB, "123456" is printed.
Both of them should have printed "456".
> 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: 10.3.1.0
> Environment: JDBC 4.0
> Reporter: Knut Anders Hatlen
> Fix For: 10.3.1.1, 10.4.0.0
>
> Attachments: ClobTest.java
>
>
> 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.