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

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

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Charles-Edouard Ruault <cruault(at)planetweb(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] problem of upper/lower case in table names
Date: 1998-11-18 06:41:55
Message-ID: Pine.LNX.3.96.981118064117.5727A-100000@maidast.retep.org.uk (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-interfaces
On Tue, 17 Nov 1998, Charles-Edouard Ruault wrote:

> 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

It looks like the drivers. I'll check both this and the primary key
problem today, and will get back to you.

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

-- 
       Peter T Mount peter(at)retep(dot)org(dot)uk
      Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
 Java PDF Generator: http://www.retep.org.uk/pdf


In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 1998-11-18 07:47:43
Subject: Re: [HACKERS] PREPARE
Previous:From: Thomas G. LockhartDate: 1998-11-18 03:23:30
Subject: Re: [HACKERS] PREPARE

pgsql-general by date

Next:From: Postgres DBADate: 1998-11-18 08:48:17
Subject: RE: [GENERAL] problem of upper/lower case in table names
Previous:From: TaralDate: 1998-11-17 21:55:22
Subject: RE: [GENERAL] problem of upper/lower case in table names

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