Re: Can I turn the case sensitive off

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Terence Chang <TChang(at)nqueue(dot)com>
Cc: Arguile <arguile(at)lucentstudios(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can I turn the case sensitive off
Date: 2003-07-25 01:26:39
Message-ID: 20030724181617.O9691-100000@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 24 Jul 2003, Terence Chang wrote:

> I am still getting the error. would this matter with 7.3.3 on windows with
> cygwin?
>
> My query only works when I quote the field. Also I have to always use the
> schema name in the where clause. Is there any way that I can set default
> schema to "app_v08" but not public? Thank you very much!
>

See the search_path variable.

> My table users contains a field "FIRSTNAME" in upper case.

Generally speaking, if you quote a name when you create it you should
quote the name when referencing it. If we used spec complient
case-folding, then you'd be able to reference "FIRSTNAME" without quotes,
but "firstname" or "Firstname" would still require quotes, so it's best to
be consistent.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-07-25 04:29:36 Re: Fw: Is SQL silly as an RDBMS<->app interface?
Previous Message Bruce Momjian 2003-07-25 01:22:14 Re: Fw: Is SQL silly as an RDBMS<->app interface?