pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
To: pgsql-jdbc@postgresql.org
Subject: Re: [PATCH] problem with DatabaseMetaData and mixed case
Date: Tue, 09 Aug 2005 01:53:46 +0200
Message-ID: <1123545227.9087.1.camel@localhost> (raw)
In-Reply-To: <Pine.BSO.4.56.0508081646440.22483@leary.csoft.net>
References: <1123518043.6487.4.camel@localhost>
	<Pine.BSO.4.56.0508081646440.22483@leary.csoft.net>

Il giorno lun, 08/08/2005 alle 16.55 -0500, Kris Jurka ha scritto:
[...]
> Postgresql folds identifiers to lowercase as long as they are created
> without quotes.  Using CREATE TABLE "MyTable" (...) will indeed retain the
> case of MyTable.  We do not fold DatabaseMetaData parameters to lowercase
> because that would prevent you from retrieving data from a table created
> as "MyTable".  The DatabaseMetaData methods like
> storesLowerCaseIdentifiers() helps allow portable code to call the other
> methods with the correct name.  It doesn't help you if you don't know if 
> the table name was originally created as MyTable or "MyTable", but if 
> that's the case a call to getTables may be in order.
> 
> Kris Jurka

Thank you, and to Oliver Jowett, for this explaination.

Giuseppe




view thread (4+ messages)

Message-ID: <1123545227.9087.1.camel@localhost>
Permalink:  ../1123545227.9087.1.camel@localhost/
Also on:    postgresql.org/message-id/1123545227.9087.1.camel@localhost

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: giuseppe@eppesuigoccas.homedns.org
  Subject: Re: [PATCH] problem with DatabaseMetaData and mixed case
  In-Reply-To: <1123545227.9087.1.camel@localhost>
  References: <1123518043.6487.4.camel@localhost> <Pine.BSO.4.56.0508081646440.22483@leary.csoft.net> <1123545227.9087.1.camel@localhost>

* 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