Re: a problem with case in psql

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: ystein Thorsen <othors99(at)grm(dot)hia(dot)no>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: a problem with case in psql
Date: 2002-04-04 16:37:21
Message-ID: 20020404083537.N10666-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Wed, 3 Apr 2002, ystein Thorsen wrote:

> I've used pgAccess to make all the tables and colums.
> Ex.: table diagnosis column diagnosis_ID
>
> Then, when I use psql to execute select statements, diagnosis_ID does
> not exist.
>
> But when I change the column name to diagnosis_id it works fine.
>
> The problem is therefore that it is possible to create a column name
> with uppercase but psql transforms all statements to lowercase, and
> therefore will not work.

It probably means that pgAccess is double quoting the identifier for you
on creation, in which case you should (and must if the identifier is
mixed case) always refer to it in double quotes. If the identifier
wasn't double quoted at creation time it would have been case folded
to lowercase as well.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2002-04-04 17:48:16 Bug #629: "for ... select ... loop" repeat first 9 rows
Previous Message Ganesh Kumar 2002-04-04 08:24:51 unsubscribe me