Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 50601 invoked from network); 5 Aug 2010 12:51:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 12:51:40 -0000 Received: (qmail 11070 invoked by uid 500); 5 Aug 2010 12:51:40 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10870 invoked by uid 500); 5 Aug 2010 12:51:37 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 10845 invoked by uid 99); 5 Aug 2010 12:51:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 12:51:36 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 12:51:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o75CpFLk028067 for ; Thu, 5 Aug 2010 12:51:16 GMT Message-ID: <20660223.178941281012675977.JavaMail.jira@thor> Date: Thu, 5 Aug 2010 08:51:15 -0400 (EDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4754) SQLClob.getObject() should always return a java.sql.Clob In-Reply-To: <15805729.546681279901450581.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895658#action_12895658 ] Rick Hillegas commented on DERBY-4754: -------------------------------------- Tests passed cleanly for me except for the network ping problem. Committed second rev of the patch at subversion revision 982585. > SQLClob.getObject() should always return a java.sql.Clob > -------------------------------------------------------- > > Key: DERBY-4754 > URL: https://issues.apache.org/jira/browse/DERBY-4754 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.6.1.0 > Reporter: Rick Hillegas > Attachments: derby-4754-01-aa-harmonyLOBs.diff, derby-4754-01-ab-harmonyLOBs.diff > > > Depending on what SQLClob wraps (a string, a stream, a java.sql.Clob), SQLClob.getObject() sometimes returns a string and other times returns a java.sql.Clob. In at least one spot, the compiler expects that SQLClob.getObject() will always return a java.sql.Clob. See the final cast compiled by SQLToJavaValueNode.generateJavaValue(). I believe that the compiler is correct and SQLClob.getObject() should behave predictably. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.