3 messages in org.postgresql.pgsql-jdbcDatabaseMetaData.getTables() is silen...
FromSent OnAttachments
Marc HerbertJul 20, 2006 9:20 am 
Mark LewisJul 20, 2006 1:12 pm 
Marc HerbertJul 21, 2006 7:19 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:DatabaseMetaData.getTables() is silently quoting table identifiers?Actions...
From:Marc Herbert (Marc@continuent.com)
Date:Jul 20, 2006 9:20:43 am
List:org.postgresql.pgsql-jdbc

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