[ 
https://issues.apache.org/jira/browse/SOLR-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar resolved SOLR-1056.
-----------------------------------------

    Resolution: Fixed
      Assignee: Shalin Shekhar Mangar

Committed revision 751993.

Thanks Oliver!

> The comparison used with the Reader to evaluate the end of text in the class 
> ClobTransformer must be '>' instead of '!='
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1056
>                 URL: https://issues.apache.org/jira/browse/SOLR-1056
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4
>         Environment: Linux Debian lenny, Solr 1.4-dev, jtds, SQL Server DB 
> backend
>            Reporter: Oliver Reyes
>            Assignee: Shalin Shekhar Mangar
>            Priority: Trivial
>             Fix For: 1.4
>
>
> The comparison in the class ClobTransformer, method 'private String 
> readFromClob(Clob clob)'  (I think) must be changed for '>' due to that the 
> API of java.io.Reader indicates that the reader will return -1 when there is 
> no more data available at current Reader.
> Original:
>  try {
>       while ((len = reader.read(buf)) != 0) {
>         sb.append(buf, 0, len);
>       }
>     } catch (IOException e) {
> Must be:
>  try {
>       while ((len = reader.read(buf)) > 0) {
>         sb.append(buf, 0, len);
>       }
>     } catch (IOException e) {
> NOTE: Sorry for my english but i don't use it frequently....

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to