[jira] Updated: (DERBY-2450) Clob.Position returning wrong value when operating on Reader
[ https://issues.apache.org/jira/browse/DERBY-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-2450: --- Attachment: derby-2450-javadoc.diff Attached 'derby-2450-javadoc.diff' which rewrites/-formats the JavaDoc. I kept the algorithm documentation in the JavaDoc, since it is only generated as part of the engine documentation. It is HTML formatted, and best viewed in a browser... Clob.Position returning wrong value when operating on Reader Key: DERBY-2450 URL: https://issues.apache.org/jira/browse/DERBY-2450 Project: Derby Issue Type: Bug Components: JDBC Affects Versions: 10.3.0.0 Environment: all Reporter: Anurag Shekhar Assigned To: Anurag Shekhar Fix For: 10.3.0.0 Attachments: derby-2250.diff, derby-2450-javadoc.diff, PositionTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2450) Clob.Position returning wrong value when operating on Reader
[ https://issues.apache.org/jira/browse/DERBY-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-2450: --- Derby Info: (was: [Patch Available]) Fix Version/s: 10.3.0.0 Committed 'derby-2250.diff' (the name a bit confusing, as it refers to a different Jira issue, but it is the correct patch) to trunk with revision 522440. Clob.Position returning wrong value when operating on Reader Key: DERBY-2450 URL: https://issues.apache.org/jira/browse/DERBY-2450 Project: Derby Issue Type: Bug Components: JDBC Affects Versions: 10.3.0.0 Environment: all Reporter: Anurag Shekhar Assigned To: Anurag Shekhar Fix For: 10.3.0.0 Attachments: derby-2250.diff, PositionTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2450) Clob.Position returning wrong value when operating on Reader
[ https://issues.apache.org/jira/browse/DERBY-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-2450: --- Component/s: JDBC Affects Version/s: 10.3.0.0 Clob.Position returning wrong value when operating on Reader Key: DERBY-2450 URL: https://issues.apache.org/jira/browse/DERBY-2450 Project: Derby Issue Type: Bug Components: JDBC Affects Versions: 10.3.0.0 Environment: all Reporter: Anurag Shekhar Assigned To: Anurag Shekhar Attachments: derby-2250.diff, PositionTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2450) Clob.Position returning wrong value when operating on Reader
[ https://issues.apache.org/jira/browse/DERBY-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Shekhar updated DERBY-2450: -- Attachment: derby-2250.diff I have simplified the code while retaining the algorithm used in position calculation. The major change from the existing code is that I have taken off the part of code which slices and converts the search string to char array. This is not really required as String.charAt gives the access to any char in the string. Doing this also simplifies the comparison as we don't need to replenish the char array after exhausting it during comparison. I have also changed the javadoc to explain actual search process. Clob.Position returning wrong value when operating on Reader Key: DERBY-2450 URL: https://issues.apache.org/jira/browse/DERBY-2450 Project: Derby Issue Type: Bug Environment: all Reporter: Anurag Shekhar Attachments: derby-2250.diff, PositionTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2450) Clob.Position returning wrong value when operating on Reader
[ https://issues.apache.org/jira/browse/DERBY-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Shekhar updated DERBY-2450: -- Derby Info: [Patch Available] Clob.Position returning wrong value when operating on Reader Key: DERBY-2450 URL: https://issues.apache.org/jira/browse/DERBY-2450 Project: Derby Issue Type: Bug Environment: all Reporter: Anurag Shekhar Assigned To: Anurag Shekhar Attachments: derby-2250.diff, PositionTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2450) Clob.Position returning wrong value when operating on Reader
[ https://issues.apache.org/jira/browse/DERBY-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Shekhar updated DERBY-2450: -- Attachment: PositionTest.java Clob.Position method, when its searching pattern over a stream, returns a wrong value. I found this bug while working on DERBY-2346. I am not able to reproduce the exact behavior with existing clob implementation. To reproduce the problem in the method I have extracted the position method in a stand alone class and running it against a InputStreamReader. When I do that the value I get differs from what I get from (String.indexOf (pattern) + 1). all the methods I have used in the test class are from BlobClob4BlobTest Clob.Position returning wrong value when operating on Reader Key: DERBY-2450 URL: https://issues.apache.org/jira/browse/DERBY-2450 Project: Derby Issue Type: Bug Environment: all Reporter: Anurag Shekhar Attachments: PositionTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.