problem of upper/lower case in table names

From: Charles-Edouard Ruault <cruault(at)planetweb(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: problem of upper/lower case in table names
Date: 1998-11-17 20:26:11
Message-ID: 3651DBE3.20A775E1@planetweb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

Hi all,

i've got this annoying problem : if you create a table with an uppercase
name, postgres transforms it in lower case. After that, if you try to
retrieve the primary keys for this table ( still using the uppercase
name as argument ) using the JDBC driver
DatabaseMetaData.getPrimaryKeys(), it always return an empty result set
since the SQL command used in the driver requests a case sensitive match
for the table name ( and bc.relname ~ table ).
I've a workaround in the driver ( using bc.relname ~* table ) but i'd
like to know who's fault it is ( mine or postgres ) ....
Thanks for your advices & help

NB : i'm using postgres 6.4 with jdbc driver included in this release.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jay O'Connor 1998-11-17 21:22:47 Re: [GENERAL] problem of upper/lower case in table names
Previous Message Douglas T. Brown 1998-11-17 17:02:17 How to rename a database in 6.3.2

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jay O'Connor 1998-11-17 21:22:47 Re: [GENERAL] problem of upper/lower case in table names
Previous Message Charles-Edouard Ruault 1998-11-17 19:33:10 [JDBC Problem] unable to get primary keys through DatabaseMetaData.getPrimaryKeys()