Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29117F1DA for ; Sat, 6 Apr 2013 16:05:16 +0000 (UTC) Received: (qmail 83231 invoked by uid 500); 6 Apr 2013 16:05:16 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83217 invoked by uid 500); 6 Apr 2013 16:05: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 83208 invoked by uid 99); 6 Apr 2013 16:05:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Apr 2013 16:05:15 +0000 Date: Sat, 6 Apr 2013 16:05:15 +0000 (UTC) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6131) select from view with "upper" and "in" list throws a ClassCastException 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-6131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-6131: ---------------------------------- Fix Version/s: 10.9.2.2 backported to 10.9: s10_9_ibm16:11>svn commit Sending . Sending java\engine\org\apache\derby\impl\sql\compile\PredicateList.java Adding java\testing\org\apache\derbyTesting\functionTests\tests\lang\Derby6131.java Sending java\testing\org\apache\derbyTesting\functionTests\tests\lang\_Suite.java Sending java\testing\org\apache\derbyTesting\junit\BaseJDBCTestCase.java Transmitting file data ... Committed revision 1465265. > select from view with "upper" and "in" list throws a ClassCastException > ----------------------------------------------------------------------- > > Key: DERBY-6131 > URL: https://issues.apache.org/jira/browse/DERBY-6131 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.1.3.3, 10.2.2.1, 10.3.3.1, 10.4.2.1, 10.5.3.2, 10.6.2.3, 10.7.1.4, 10.9.1.0, 10.8.3.0 > Environment: windows > Reporter: Rong Qu > Assignee: Mike Matrigali > Fix For: 10.10.1.2, 10.9.2.2, 10.11.0.0 > > Attachments: derby-6131-patch_2.txt, derby-6131-patch.txt > > > the issue can be reproduced > 1. create table myTbl1 (name varchar(1000)); > 2. create table myTbl2 (name varchar(1000)); > 3. create view myView (name) as select t1.name from myTbl1 t1 union all select t2.name from myTbl2 t2; > 4. select name from myView where upper(name) in ('AA', 'BB'); > #4 failed with "org.apache.derby.impl.sql.compile.SimpleStringOperatorNode incompatible with org.apache.derby.impl.sql.compile.ColumnReference: java.lang.ClassCastException" > If the view is created as "create myView (name) as select t1.name from myTbl1 t1", the query worked fine. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira