Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 97179 invoked from network); 13 May 2005 08:09:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 May 2005 08:09:10 -0000 Received: (qmail 75940 invoked by uid 500); 13 May 2005 08:12:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75871 invoked by uid 500); 13 May 2005 08:12:32 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 75839 invoked by uid 99); 13 May 2005 08:12:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 13 May 2005 01:12:32 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 26A1E2F8 for ; Fri, 13 May 2005 10:08:14 +0200 (CEST) Message-ID: <635945000.1115971694156.JavaMail.jira@ajax.apache.org> Date: Fri, 13 May 2005 10:08:14 +0200 (CEST) From: "Bernt M. Johnsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-280) Wrong result from select when aliasing to same name as used in group by Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Wrong result from select when aliasing to same name as used in group by ----------------------------------------------------------------------- Key: DERBY-280 URL: http://issues.apache.org/jira/browse/DERBY-280 Project: Derby Type: Bug Components: SQL Reporter: Bernt M. Johnsen Priority: Minor Wrong result from select when aliasing to same name as used in group by. Example: If we have the following table: ij> select * from tt; I |J ----------------------- 1 |2 2 |3 1 |2 2 |3 2 |3 5 rows selected The following select is ok: ij> select i, count(*) as cnt from tt group by i; I |CNT ----------------------- 1 |2 2 |3 2 rows selected But this one returns wrong result in the aliased column: ij> select i, count(*) as i from tt group by i; I |I ----------------------- 1 |1 2 |2 2 rows selected -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira