Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 46853 invoked from network); 7 Sep 2009 09:04:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Sep 2009 09:04:21 -0000 Received: (qmail 5053 invoked by uid 500); 7 Sep 2009 09:04:20 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 4989 invoked by uid 500); 7 Sep 2009 09:04:20 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 4857 invoked by uid 99); 7 Sep 2009 09:04:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 09:04:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 09:04:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 350A5234C046 for ; Mon, 7 Sep 2009 02:03:58 -0700 (PDT) Message-ID: <1140960342.1252314238216.JavaMail.jira@brutus> Date: Mon, 7 Sep 2009 02:03:58 -0700 (PDT) From: "Shalin Shekhar Mangar (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Resolved: (SOLR-1348) JdbcDataSource does not import Blob values correctly by default In-Reply-To: <988423600.1249676354890.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar resolved SOLR-1348. ----------------------------------------- Resolution: Fixed Fix Version/s: 1.4 Assignee: Shalin Shekhar Mangar (was: Noble Paul) Committed revision 812045. > JdbcDataSource does not import Blob values correctly by default > --------------------------------------------------------------- > > Key: SOLR-1348 > URL: https://issues.apache.org/jira/browse/SOLR-1348 > Project: Solr > Issue Type: Bug > Components: contrib - DataImportHandler > Affects Versions: 1.4 > Reporter: Jay Clelland > Assignee: Shalin Shekhar Mangar > Priority: Minor > Fix For: 1.4 > > Attachments: SOLR-1348.patch > > > When blob values are returned through a java ResultSet Object they have the type byte[]. > As byte[] doesn't have a useful toString method we end up with a reference type value added to the solr document (i.e. [B@1f23c5). > The problem is easy to remedy by adding the attribute 'convertType="true"' to the dataSource tag within data-config.xml. > However this attribute does not appear to be documented anywhere and I was only able to find it after a few hours digging through the source code. > A simple fix for this would be to change the default value of convertType to true within the JdbcDataSource class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.