Re: [INTERFACES] Case insensitive LIKE ? - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [INTERFACES] Case insensitive LIKE ?
Date
Msg-id 20300.941390995@sss.pgh.pa.us
Whole thread Raw
In response to Re: [INTERFACES] Case insensitive LIKE ?  ("Moray McConnachie" <moray.mcconnachie@computing-services.oxford.ac.uk>)
List pgsql-interfaces
"Moray McConnachie" <moray.mcconnachie@computing-services.oxford.ac.uk> writes:
>> I would like to preserve also the SQL commands betwen versions and not
>> to fill my program with IF's ..

> Why not use Passthrough queries in Access/ODBC, which have pgsql do the SQL
> for them and therefore use pgsql's syntax?

I think he just would rather avoid depending on unportable features,
which is a perfectly reasonable thing to want to do.

However, AFAICS there isn't any direct notion of "case insensitive LIKE"
in SQL92, so he's going to have to depend on *something* that's not in
the spec.

What the spec seems to envision is that you get this result by attaching
a case-insensitive collation spec to the column you're going to do the
LIKE on --- in other words, the meaning of "foo LIKE 'bar'" depends on
the charset and collation attributes of the foo column.  If you want
something other than what the column was set up to provide, tough
cookies.  Seems a tad brain-dead to me.  Anyway, there's no such concept
in Postgres, and I'll bet M$ doesn't do it exactly that way either...
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "Moray McConnachie"
Date:
Subject: Re: [INTERFACES] Case insensitive LIKE ?
Next
From: "Ansley, Michael"
Date:
Subject: RE: [INTERFACES] Case insensitive LIKE ?