Re: Case Insensitive Data Type

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: "Russell Black" <russell(dot)black(at)iarchives(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Case Insensitive Data Type
Date: 2002-05-24 19:00:22
Message-ID: 20020524150022.4701cc2b.nconway@klamath.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 24 May 2002 11:08:34 -0600
"Russell Black" <russell(dot)black(at)iarchives(dot)com> wrote:
> The EJB container does it for me, and it wants to do a
> SELECT * FROM t1 WHERE f1 = 'whatever';
> Instead of
> SELECT * FROM t1 WHERE lower( f1 ) = 'whatever';

You could have it run the SELECT on a view, where the relevant
column is defined using lower() on the appropriate column
of the real table.

Cheers,

Neil

--
Neil Conway <neilconway(at)rogers(dot)com>
PGP Key ID: DB3C29FC

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Seidman 2002-05-24 19:02:08 Re: Question on crypt password
Previous Message Tom Lane 2002-05-24 18:54:14 Re: Efficiency question: VARCHAR with empty string vs NULL