Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 50411 invoked from network); 25 Feb 2009 16:13:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2009 16:13:24 -0000 Received: (qmail 54073 invoked by uid 500); 25 Feb 2009 16:13:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 54052 invoked by uid 500); 25 Feb 2009 16:13:22 -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 54038 invoked by uid 99); 25 Feb 2009 16:13:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2009 08:13:22 -0800 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; Wed, 25 Feb 2009 16:13:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CE267234C48D for ; Wed, 25 Feb 2009 08:13:01 -0800 (PST) Message-ID: <1650293073.1235578381843.JavaMail.jira@brutus> Date: Wed, 25 Feb 2009 08:13:01 -0800 (PST) From: "Aaron Digulla (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4071) AssertFailure when selecting rows from a table with CHARACTER and VARCHAR columns In-Reply-To: <1454652923.1235578265805.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676689#action_12676689 ] Aaron Digulla commented on DERBY-4071: -------------------------------------- This is the query: [code] SELECT * FROM DEMO.TEST S WHERE S.VCHR IN ( SELECT VCHR FROM DEMO.TEST GROUP BY VCHR HAVING COUNT (VCHR) > 1 ) AND CHR NOT IN ( SELECT MAX(CHR) FROM DEMO.TEST T WHERE S.VCHR = T.VCHR GROUP BY T.VCHR HAVING COUNT(T.VCHR) > 1 ) [code] > AssertFailure when selecting rows from a table with CHARACTER and VARCHAR columns > --------------------------------------------------------------------------------- > > Key: DERBY-4071 > URL: https://issues.apache.org/jira/browse/DERBY-4071 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.2.0 > Reporter: Aaron Digulla > Attachments: DerbyTest.java > > > When running a complex query on this table: > [code] > Create table DEMO.TEST ( > CHR CHARACTER(26) , > VCHR VARCHAR(25) ) > [code] > then I get this exception: > AssertFailure: ASSERT FAILED col1.getClass() (class ...SQLChar) expected to be the same as col2.getClass() (class ....SQLVarchar)' was thrown while evaluating an expression. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.