db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anurag Shekhar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2450) Clob.Position returning wrong value when operating on Reader
Date Thu, 22 Mar 2007 09:11:32 GMT

     [ 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.

View raw message