Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 2954 invoked from network); 12 Mar 2008 19:02:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 19:02:22 -0000 Received: (qmail 65420 invoked by uid 500); 12 Mar 2008 19:02:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 65395 invoked by uid 500); 12 Mar 2008 19:02:18 -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 65386 invoked by uid 99); 12 Mar 2008 19:02:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 12:02:18 -0700 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, 12 Mar 2008 19:01:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1576F234C094 for ; Wed, 12 Mar 2008 12:00:48 -0700 (PDT) Message-ID: <1960773145.1205348448086.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 12:00:48 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3310) ASSERT in MergeSort.checkColumnTypes() disallow legal type conversions In-Reply-To: <4068391.1199894734052.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-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-3310: ---------------------------------- Attachment: derby-3310_diff.txt Attached is a revision of the try1 patch (derby-3310_diff.txt) that adds some comments to the changed method. Since Army confirmed that this change the right thing to do, I would like to commit this patch to get rid of this regression for 10.4. I welcome comments on the comments and the patch. Ultimately with DERBY-3494 I would like to try to roll this method into NormalizeResultSetNode, but for this fix I think it best not to combine it with code reorg. > ASSERT in MergeSort.checkColumnTypes() disallow legal type conversions > ---------------------------------------------------------------------- > > Key: DERBY-3310 > URL: https://issues.apache.org/jira/browse/DERBY-3310 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.0.0 > Reporter: Dyre Tjeldvoll > Priority: Minor > Attachments: cast-repro.sql, d3310_writeup_1.html, derby-3310_diff.txt, derby-3310_remove_genNormalizeResultSetNode_diff.txt, derby-3310_try1_diff.txt, derby3310_rsn_cleanup_1.txt > > > The following code > CREATE TABLE U (SNAME VARCHAR(32000), TNAME VARCHAR(32000), C1 BIGINT); > -- This triggers an ASSERT (because 2 is INTEGER and not BIGINT) > INSERT INTO U(SNAME, TNAME, C1) SELECT DISTINCT SCHEMANAME, TABLENAME, 2 > FROM SYS.SYSTABLES T JOIN SYS.SYSSCHEMAS S ON T.SCHEMAID = S.SCHEMAID; > gives > ERROR XJ001: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLInteger) expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.SQLLongint): org.apache.derby.shared.common.sanity.AssertFailure'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.