Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 485F89F9F47 for ; Fri, 29 Dec 2006 09:27:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 37936-08 for ; Fri, 29 Dec 2006 09:27:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id F3EEA9F9CE3 for ; Fri, 29 Dec 2006 09:27:28 -0400 (AST) Received: (qmail 7279 invoked from network); 29 Dec 2006 13:27:26 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 29 Dec 2006 13:27:26 -0000 In-Reply-To: <4594B16C.5010609@kensystem.com> References: <4594B16C.5010609@kensystem.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel Date: Fri, 29 Dec 2006 08:27:38 -0500 To: Ken Johanson X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/130 X-Sequence-Number: 16362 Ken, The backend does not provide us with this information, so it is not trivial to implement( or even possible in some cases) . Dave On 29-Dec-06, at 1:10 AM, Ken Johanson wrote: > Greetings, > > Using the the driver supplied with PG 8.2 I am seeing the following > with DatabaseMetadata: > > a) getCatalogName(int): always empty > > b) getTableName(int) always empty > > c) getColumnLabel(int) always equal to getColumnName(i), i.e.: > `SELECT foo AS bar from tbl`, > both getColumnName and getColumnLabel return 'bar'. I believe (cant > recall for sure though) that getColumnLabel is behaving okay, but > getColumnName should instead return 'foo' > > I did not check the String argument equivalent to of these. > > Is there a configuration option in the driver or PG that I can > change to correct this, or are these just not fully implemented yet? > > Kind regards, > > Ken > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate >