[
https://issues.apache.org/jira/browse/DERBY-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
V.Narayanan updated DERBY-2604:
-------------------------------
Attachment: ClobLocatorWork_v2.stat
ConnectionLocatorWork_v2.diff
Thanks once again for the comments and guidance Oystein and Knut.
Pls find a patch attached addressing the comments and suggestions.
The changes to the various files and their purport apropos the context
are elucidated below.
M java/client/org/apache/derby/client/am/ClobLocatorWriter.java
1) Made the Clob and Connection objects final.
2) Removed making Clob and Connection null in close() (they are final)
3) changed (off+len > c.length) to (len > c.length - off)
M java/client/org/apache/derby/client/am/ClobLocatorInputStream.java
1) Made the Clob and Connection objects final.
2) Removed making Clob and Connection null in close() (they are final)
3) changed (off+len > c.length) to (len > c.length - off)
4) Added a method getBytesFromString(String str) that accepts a String and
returns
a Byte array using the algorithm(in the code snippet) pointed by oystein in
his comments.
5) Using this method in readBytes method to convert the String to bytes.
M java/client/org/apache/derby/client/am/ClobLocatorOutputStream.java
1) Made the Clob and Connection objects final.
2) Removed making Clob and Connection null in close() (they are final)
3) changed (off+len > c.length) to (len > c.length - off)
4) Changed String(b) to String(b, "ISO-8859-1")
M java/client/org/apache/derby/client/am/ClobLocatorReader.java
1) Made the Clob and Connection objects final.
2) Removed making Clob and Connection null in close() (they are final)
3) changed (off+len > c.length) to (len > c.length - off)
> 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.stat, ConnectionLocatorWork_v2.diff
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.