Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 97015 invoked from network); 13 May 2008 16:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 16:56:20 -0000 Received: (qmail 83180 invoked by uid 500); 13 May 2008 16:56:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83145 invoked by uid 500); 13 May 2008 16:56:21 -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 83134 invoked by uid 99); 13 May 2008 16:56:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 09:56:20 -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; Tue, 13 May 2008 16:55:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D34FC234C118 for ; Tue, 13 May 2008 09:55:55 -0700 (PDT) Message-ID: <758820750.1210697755864.JavaMail.jira@brutus> Date: Tue, 13 May 2008 09:55:55 -0700 (PDT) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-2457) Use of column aliases in group by / having clauses can cause queries to fail In-Reply-To: <4170688.1173999609456.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-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bryan Pendleton resolved DERBY-2457. ------------------------------------ Resolution: Invalid I committed the additional test cases to the trunk as revision 655947. Since we believe that the current behavior of Derby is correct according to the SQL Standard, I'm resolving the issue as invalid. (Would "won't fix" be more appropriate?) > Use of column aliases in group by / having clauses can cause queries to fail > ---------------------------------------------------------------------------- > > Key: DERBY-2457 > URL: https://issues.apache.org/jira/browse/DERBY-2457 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.3.1.4 > Reporter: Andrew McIntyre > Assignee: Bryan Pendleton > Priority: Minor > Attachments: 1624_repro.sql, additionalTests.diff > > > Some use of column aliases in group by / having clauses can cause queries to fail with error 42X04. The queries can sometimes be made to work by also aliasing the table or rewriting the query to use a subselect. Attached is a simple sql script which reproduces the issue, originally found as part of DERBY-1624. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.