X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 6330E9FB327 for ; Thu, 20 Jul 2006 16:55:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 22648-01-3 for ; Thu, 20 Jul 2006 19:55:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id A877F9FB388 for ; Thu, 20 Jul 2006 13:22:06 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G3bHS-0002UG-8v for pgsql-jdbc@postgresql.org; Thu, 20 Jul 2006 18:21:42 +0200 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jul 2006 18:21:42 +0200 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jul 2006 18:21:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Marc Herbert Subject: DatabaseMetaData.getTables() is silently quoting table identifiers? Date: Thu, 20 Jul 2006 18:21:06 +0200 Lines: 22 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:S2dW/KKokg51DVTAXP9ftLf1BxI= X-Archive-Number: 200607/67 X-Sequence-Number: 15493 Hi, If I create table MY_TABLE (unquoted uppercase), then my_table (lowercase) is actually created. This is clearly documented, so fine. 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