Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 89913 invoked from network); 4 Mar 2005 01:29:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Mar 2005 01:29:50 -0000 Received: (qmail 70489 invoked by uid 500); 4 Mar 2005 01:29:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 70454 invoked by uid 500); 4 Mar 2005 01:29:49 -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 70439 invoked by uid 99); 4 Mar 2005 01:29:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from e34.co.us.ibm.com (HELO e34.co.us.ibm.com) (32.97.110.132) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 17:29:47 -0800 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j241TjKN527708 for ; Thu, 3 Mar 2005 20:29:45 -0500 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j241TiPs140518 for ; Thu, 3 Mar 2005 18:29:44 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j241TiPg001607 for ; Thu, 3 Mar 2005 18:29:44 -0700 Received: from [127.0.0.1] (bandaram.svl.ibm.com [9.30.40.158]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j241ThN3001558 for ; Thu, 3 Mar 2005 18:29:44 -0700 Message-ID: <4227B98A.6080807@Sourcery.Org> Date: Thu, 03 Mar 2005 17:27:38 -0800 From: Satheesh Bandaram User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: Case Sensitivity References: <42274F21.4090609@apache.org> In-Reply-To: <42274F21.4090609@apache.org> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I personally like the functional indexes. I think they are useful for all cases where querries have expressions in predicates. Satheesh Jeremy Boynes wrote: > This is a subject that keeps coming up on the mailing lists so is > probably worth addressing. > > One challenge we face is that many users are likely to be considering > Derby as an alternative to MySQL which by default uses a > case-insensitive collation. This is legal SQL, just different from > most other databases (Oracle, DB2, SQL Server (which actually allows > you to choose when you create the database)). > > The standard way of solving this would be to support user-specified > character sets and collations per the spec but > 1) that's likely to be a lot of work > 2) I don't know of another database that actually does this the way > the spec says, making us "different", and > 3) it is likely to be more confusing than helpful > > Other options include: > a) support collation specification at the schema level like SQL Server > b) support function-based indexes, so users can create indexes > on UPPER(col) to reduce the performance hit > c) just document and offer workarounds (like adding a second column) > d) change Derby to be like MySQL (gets a -1 from me but ...) > > Thoughts? > -- > Jeremy > > >