Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99776 invoked from network); 26 Aug 2006 04:01:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Aug 2006 04:01:46 -0000 Received: (qmail 70292 invoked by uid 500); 26 Aug 2006 04:01:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 70261 invoked by uid 500); 26 Aug 2006 04:01:46 -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 70252 invoked by uid 99); 26 Aug 2006 04:01:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 21:01:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 21:01:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 69E9D714219 for ; Sat, 26 Aug 2006 03:58:34 +0000 (GMT) Message-ID: <7453226.1156564714431.JavaMail.jira@brutus> Date: Fri, 25 Aug 2006 20:58:34 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-883) Enhance GROUP BY clause to support expressions instead of just column references. In-Reply-To: <154058036.1138376132958.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-883?page=all ] Daniel John Debrunner updated DERBY-883: ---------------------------------------- Derby Info: (was: [Patch Available]) Patch 883.patch6.txt applied to trunk with changes below as revision 437070. 0) Merged by hand to latest codeline, only one real clash due to other added methods on ColumnReference 1) Licence header changed for new files to match new policy 2) Adapt patch for new location of BaseJDBCTestCase 3) Cleanup of new GroupByExpressionTest to use new single connection model provided by BaseJDBCTestCase and not have a single static Connection field. Static fields will cause a problem if multiple tests are run concurrently. 4) Minor cleanup of new assert in BaseJDBCTestCase Thanks Manish, especially for sticking with it. :-) > Enhance GROUP BY clause to support expressions instead of just column references. > --------------------------------------------------------------------------------- > > Key: DERBY-883 > URL: http://issues.apache.org/jira/browse/DERBY-883 > Project: Derby > Issue Type: New Feature > Components: SQL > Affects Versions: 10.1.2.1, 10.2.1.0 > Environment: JDK 1.5.0_05 > Reporter: Lluis Turro > Assigned To: Manish Khettry > Fix For: 10.2.1.0 > > Attachments: 883.patch.txt, 883.patch3.txt, 883.patch4.txt, 883.patch5.txt, 883.patch6.txt, 883.patch6.txt, 883.patch7.txt > > > This select would return an error syntax on finding "(" after month if group by clause: > select idissue, month(creation), year(creation), count(distinct idissue) > where > .... > group by idissue, month(creation), year(creation) -- 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