Re: Case sensitive order by

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Case sensitive order by
Date: 2003-04-12 22:47:01
Message-ID: 20030412224701.GA31063@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Apr 12, 2003 at 13:08:03 -0500,
"Jim C. Nasby" <jim(at)nasby(dot)net> wrote:
> On Fri, Apr 11, 2003 at 03:15:41PM -0500, Bruno Wolff III wrote:
> > On Fri, Apr 11, 2003 at 23:49:12 +0530,
> > mallah(at)trade-india(dot)com wrote:
> > >
> > > > I want to do case sensitve sorting on a varchar field.
> > >
> > > the default ordering is case sensitive , what makes u feel
> > > otherwise , could u give some examples?
> >
> > That depends on the locale. In US_EN ordering is not case sensitive.
> > (Unless to strings are the same excepting their case.)
>
> Stupid question: would US_EN also result in where clauses being
> case-insensitive? I'd like that behavior, but am currently doing it
> using where lower(blah) = lower('search phrase')

No.

P.S.
I double checked the name of the local and it is really 'en_US'.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom 2003-04-13 00:07:27 lo_import doesn't works through ODBC !
Previous Message Jan Wieck 2003-04-12 21:27:32 Re: Backpatch FK changes to 7.3 and 7.2?