From: Marc Herbert <Marc.Herbert@continuent.com>
To: pgsql-jdbc@postgresql.org
Subject: DatabaseMetaData.getTables() is silently quoting table identifiers?
Date: Thu, 20 Jul 2006 18:21:06 +0200
Message-ID: <khjd5c0jlhp.fsf@meije.emic.fr> (raw)
Hi,
If I create table MY_TABLE (unquoted uppercase), then my_table
(lowercase) is actually created. This is clearly documented, so fine.
<http://www.postgresql.org/docs/8.1/interactive/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS;
But now if I use .getTables(null, null, "MY_TABLE", null) to ask
whether this table actually exists, the answer is "no" (empty) because
.getTables() acts like I quoted the MY_TABLE identifier.
It's quite annoying to create a table and not be able to see it...
Tested with postgresql-server.i686 8.0.7-1PGDG and 8.2dev-503
Maybe this is a server-side issue?
Cheers,
Marc
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: Marc.Herbert@continuent.com
Subject: Re: DatabaseMetaData.getTables() is silently quoting table identifiers?
In-Reply-To: <khjd5c0jlhp.fsf@meije.emic.fr>
References: <khjd5c0jlhp.fsf@meije.emic.fr>
* 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