Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 23076 invoked from network); 17 Aug 2007 22:44:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 22:44:51 -0000 Received: (qmail 66955 invoked by uid 500); 17 Aug 2007 22:44:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 66921 invoked by uid 500); 17 Aug 2007 22:44:49 -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 66912 invoked by uid 99); 17 Aug 2007 22:44:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 15:44:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 22:44:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B700071418F for ; Fri, 17 Aug 2007 15:44:30 -0700 (PDT) Message-ID: <9349693.1187390670740.JavaMail.jira@brutus> Date: Fri, 17 Aug 2007 15:44:30 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-765) Valid query fails with ERROR X0A00: The select list mentions column 'A' twice... In-Reply-To: <1537287310.1134692805590.JavaMail.jira@ajax.apache.org> 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-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden closed DERBY-765. -------------------------------- > Valid query fails with ERROR X0A00: The select list mentions column 'A' twice... > -------------------------------------------------------------------------------- > > Key: DERBY-765 > URL: https://issues.apache.org/jira/browse/DERBY-765 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.1.6 > Reporter: Kathey Marsden > Assignee: Rick Hillegas > Priority: Minor > Fix For: 10.2.2.0 > > > The following query is valid but fails with 10.2 > ij> create table bug280 > ( > a int, > b int > ); > 0 rows inserted/updated/deleted > ij> insert into bug280( a, b ) > values ( 1, 1 ), ( 1, 2 ), ( 1, 3 ), ( 2, 1 ), ( 2, 2 ); > 5 rows inserted/updated/deleted > ij> select a+1 as a, a+1 as a from bug280 group by a; > ERROR X0A00: The select list mentions column 'A' twice. This is not allowed in queries with GROUP BY or HAVING clauses. Try aliasing one of the conflicting columns to a unique name. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.