pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Taral <taral@cyberjunkie.com>
To: Jay O'Connor <joconnor@roadrunner.com>
To: pgsql-general@postgreSQL.org
Subject: RE: [GENERAL] problem of upper/lower case in table names
Date: Tue, 17 Nov 1998 15:55:22 -0600
Message-ID: <001001be1274$f9b2bf20$8a14f7d0@taral.dobiecenter.com> (raw)
In-Reply-To: <9811171425400E.00469@localhost.localdomain>

> >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

Try quoting the names... i.e. CREATE TABLE "TEST" etc.

Taral



view thread (5+ messages)  latest in thread

Message-ID: <001001be1274$f9b2bf20$8a14f7d0@taral.dobiecenter.com>
Permalink:  ../001001be1274$f9b2bf20$8a14f7d0@taral.dobiecenter.com/
Also on:    postgresql.org/message-id/001001be1274$f9b2bf20$8a14f7d0@taral.dobiecenter.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: taral@cyberjunkie.com, joconnor@roadrunner.com, pgsql-general@postgreSQL.org
  Subject: RE: [GENERAL] problem of upper/lower case in table names
  In-Reply-To: <001001be1274$f9b2bf20$8a14f7d0@taral.dobiecenter.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox