pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Ken Johanson <pg-user@kensystem.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel
Date: Fri, 29 Dec 2006 08:27:38 -0500
Message-ID: <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> (raw)
In-Reply-To: <4594B16C.5010609@kensystem.com>
References: <4594B16C.5010609@kensystem.com>

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
>




view thread (19+ messages)  latest in thread

Message-ID: <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com>
Permalink:  ../3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com/
Also on:    postgresql.org/message-id/3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com

 · 

reply

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: pg@fastcrypt.com, pg-user@kensystem.com
  Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel
  In-Reply-To: <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com>
  References: <4594B16C.5010609@kensystem.com> <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.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