Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] problem of upper/lower case in table names

From: "Jay O'Connor" <joconnor(at)roadrunner(dot)com>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] problem of upper/lower case in table names
Date: 1998-11-17 21:22:47
Message-ID: 9811171425400E.00469@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-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

I've run into the same problem just creating a table with a name including an
uppercase.  The name gets converted to all lowercase but then I seem unable to
DROP the table.

>NB : i'm using postgres 6.4 with jdbc driver included in this release.
--
Jay O'Connor
joconnor(at)roadrunner(dot)com
http://www.roadrunner.com/~joconnor

"God himself plays the bass strings first when He tunes the soul" 

In response to

Responses

pgsql-interfaces by date

Next:From: TaralDate: 1998-11-17 21:55:22
Subject: RE: [GENERAL] problem of upper/lower case in table names
Previous:From: Charles-Edouard RuaultDate: 1998-11-17 20:26:11
Subject: problem of upper/lower case in table names

pgsql-general by date

Next:From: TaralDate: 1998-11-17 21:55:22
Subject: RE: [GENERAL] problem of upper/lower case in table names
Previous:From: Charles-Edouard RuaultDate: 1998-11-17 20:26:11
Subject: problem of upper/lower case in table names

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group