Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 96430 invoked from network); 28 Sep 2010 05:40:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 05:40:04 -0000 Received: (qmail 23303 invoked by uid 500); 28 Sep 2010 05:40:03 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 22909 invoked by uid 500); 28 Sep 2010 05:40:00 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 22898 invoked by uid 99); 28 Sep 2010 05:39:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 05:39:59 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 05:39:56 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8S5dZWs019073 for ; Tue, 28 Sep 2010 05:39:35 GMT Message-ID: <1326554.436371285652374981.JavaMail.jira@thor> Date: Tue, 28 Sep 2010 01:39:34 -0400 (EDT) From: "Alexander Karpov (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-952) Support lower and upper case functions in "order by" clause In-Reply-To: <28811565.1180463776430.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915623#action_12915623 ] Alexander Karpov commented on JCR-952: -------------------------------------- I have changed \openjpa\openjpa-kernel\src\main\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jjt void orderby_extension() #ORDERBYEXTENSION : { } { aggregate_select_expression() } to void orderby_extension() #ORDERBYEXTENSION : { } { aggregate_select_expression() upper() } and it works Developers, who knows code well, any potential problems I can meet due to my fix? Thanks. > Support lower and upper case functions in "order by" clause > ----------------------------------------------------------- > > Key: JCR-952 > URL: https://issues.apache.org/jira/browse/JCR-952 > Project: Jackrabbit Content Repository > Issue Type: New Feature > Components: jackrabbit-core, query > Affects Versions: 1.3 > Reporter: James Hang > Priority: Minor > > The query languages should support lower- and upper-case functions within the "order by" clause. This would provide case-insensitive ordering of query results. > Example: Find all "nt:base" nodes ordered by the "foo" property, but ignoring case > In XPath: > //element(*,nt:base) order by fn:lower-case(@foo) > In SQL: > SELECT * FROM nt:base ORDER BY lower(foo) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.