Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 80878 invoked from network); 23 Jul 2010 16:11:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 16:11:16 -0000 Received: (qmail 14538 invoked by uid 500); 23 Jul 2010 16:11:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 14514 invoked by uid 500); 23 Jul 2010 16:11:15 -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 14507 invoked by uid 99); 23 Jul 2010 16:11:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 16:11:15 +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; Fri, 23 Jul 2010 16:11:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6NGAp1p016878 for ; Fri, 23 Jul 2010 16:10:51 GMT Message-ID: <23098570.546701279901451211.JavaMail.jira@thor> Date: Fri, 23 Jul 2010 12:10:51 -0400 (EDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas updated DERBY-4754: --------------------------------- Affects Version/s: 10.6.1.0 Component/s: SQL > 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 > > 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.