[
https://issues.apache.org/jira/browse/DERBY-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
V.Narayanan updated DERBY-2604:
-------------------------------
Attachment: ClobLocatorWork_v4.stat
ConnectionLocatorWork_v4.diff
This patch addresses the bugs that were found during the process of enabling
Clob support for locators.
Pls note that Clob locators are currently disabled.
I have not yet run junit All for the patch. Since the code is diabled I do not
expect any failures. But I will run junit All and revert back with the results.
The following are the details of the details of the files modified and their
import apropos the context.
M java/client/org/apache/derby/client/am/ClobLocatorWriter.java
writeCharacters(line no 162) method was using c.length as the length of the
string
transmitted to the server using the clobSetString stored procedure. This should
use len instead.
M java/client/org/apache/derby/client/am/Clob.java
The PositionX method on the client that accepts a Clob had not been converted
to use locators. This has been done.
The getCharacterStream(long pos, long length) method should return a stream of
length characters starting from pos. Hence the length parameter that should be
passed to the constructor of the ClobLocatorReader class should have been
pos+len-1 instead of len.
M java/client/org/apache/derby/client/am/CallableLocatorProcedures.java
The stored procedure call to CLOBGETPOSITIONFROMSTRING was sending the
original string instead of sending it in chunks. This has been changed to send
the
chunks instead(stringToBeCompared).
> Implement Clob support for locators
> -----------------------------------
>
> Key: DERBY-2604
> URL: https://issues.apache.org/jira/browse/DERBY-2604
> Project: Derby
> Issue Type: Sub-task
> Components: Network Server
> Reporter: V.Narayanan
> Assigned To: V.Narayanan
> Attachments: ClobLocatorWork_v1.diff, ClobLocatorWork_v1.stat,
> ClobLocatorWork_v2.diff, ClobLocatorWork_v2.stat, ClobLocatorWork_v3.diff,
> ClobLocatorWork_v3.stat, ClobLocatorWork_v4.stat,
> ConnectionLocatorWork_v2.diff, ConnectionLocatorWork_v4.diff
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.