From: Oliver Jowett <oliver@opencloud.com>
To: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [PATCH] problem with DatabaseMetaData and mixed case table
Date: Tue, 09 Aug 2005 10:07:17 +1200
Message-ID: <42F7D795.3050707@opencloud.com> (raw)
In-Reply-To: <1123518043.6487.4.camel@localhost>
References: <1123518043.6487.4.camel@localhost>
Giuseppe Sacco wrote:
> The solution I propose is, since it seems that postgresql always store
> relation names in lowercase letters, to change the jdbc implementation
> of all methods like «getPrimaryKeys» in order to pass lowercase relation
> names to the backend.
This assumption is wrong. PostgreSQL stores mixed case identifiers, but
if you do not quote them then they are forced to lowercase during
parsing. If you want to preserve case, quote your identifiers. See
http://www.postgresql.org/docs/8.0/static/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS> Is this the right way to solve the problem?
No. It's valid to have tables called "foo", "Foo", and "FOO" (possibly
simultaneously); your patch would destroy the ability to examine
anything but "foo".
-O
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: oliver@opencloud.com, giuseppe@eppesuigoccas.homedns.org
Subject: Re: [PATCH] problem with DatabaseMetaData and mixed case table
In-Reply-To: <42F7D795.3050707@opencloud.com>
References: <1123518043.6487.4.camel@localhost> <42F7D795.3050707@opencloud.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