Re: AW: case insensitive database ? - Mailing list pgsql-novice

From Joel Burton
Subject Re: AW: case insensitive database ?
Date
Msg-id Pine.LNX.4.21.0104241901360.23237-100000@olympus.scw.org
Whole thread Raw
In response to AW: case insensitive database ?  (Thorsten Mauch <mauch@imkenberg.de>)
List pgsql-novice
On Wed, 25 Apr 2001, Thorsten Mauch wrote:

> Thanks for the answers.
> My prob is that i don't query the database
> directly. I use the CASTOR as a persitence-Framework.
> I create QOL-queries that are translated into
> SQL-Queries by the framework.
> So i can't use ILIKE or UPPER(expr) :(
> I also can't force the use of a special index.
> Howerver, i have to maintain a second field with upper
> letters, that i query instead of the orginal field

could you create a view and query that?

CREATE TABLE pers (fname);

INSERT INTO pers VALUES ('Joel');

CREATE VIEW pers_use_me AS SELECT fname, lower(fname) as lower_fname
FROM pers;

SELECT * FROM pers WHERE lower_fname = 'joel';


HTH,
--
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington


pgsql-novice by date:

Previous
From: Thorsten Mauch
Date:
Subject: AW: case insensitive database ?
Next
From: Thorsten Mauch
Date:
Subject: AW: Re: AW: case insensitive database ?