Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 90906 invoked from network); 10 Jun 2008 14:13:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 14:13:18 -0000 Received: (qmail 92049 invoked by uid 500); 10 Jun 2008 14:13:20 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 91587 invoked by uid 500); 10 Jun 2008 14:13:19 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 91576 invoked by uid 99); 10 Jun 2008 14:13:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 07:13:19 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 14:12:28 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-2-fe2.eu.sun.com [192.18.6.11]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m5AEBiik011142 for ; Tue, 10 Jun 2008 14:11:54 GMT Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K2900F012RC2S00@fe-emea-09.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-user@db.apache.org; Tue, 10 Jun 2008 15:11:44 +0100 (BST) Received: from localhost ([129.159.112.134]) by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K2900FJW3F83980@fe-emea-09.sun.com> for derby-user@db.apache.org; Tue, 10 Jun 2008 15:11:33 +0100 (BST) Date: Tue, 10 Jun 2008 16:11:32 +0200 From: Knut Anders Hatlen Subject: Re: case-insensitive searching In-reply-to: <90540.67004.qm@web31808.mail.mud.yahoo.com> Sender: Knut.Hatlen@Sun.COM To: Derby Discussion Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <90540.67004.qm@web31808.mail.mud.yahoo.com> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Geoff hendrey writes: > Hi Guys, > > I was wondering what is being done for case-insensitive > comparisons. Also wanted to propose an implementation option, which > would be to allow indexes to be created on UPPER or LOWER. As long as > I had an index on UPPER or LOWER, I could do this efficiently: > > WHERE UPPER(T1.lastname) = UPPER(T2.lastname) > > Is that a totally crazy suggestion, to allow indexes to be created on > UPPER and LOWER? Maybe this is easy to implement. Hi Geoff, It's not a crazy suggestion at all. We already have some similar feature requests in the bug tracker. I think DERBY-455 is more or less the same idea, but you may also take a look at some other JIRAs: https://issues.apache.org/jira/browse/DERBY-455 https://issues.apache.org/jira/browse/DERBY-481 https://issues.apache.org/jira/browse/DERBY-1748 DERBY-481 (implement SQL generated columns) has had some activity recently, but I don't know if anyone is planning to implement it. -- Knut Anders