pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Philip Yarra <philip@utiba.com>
Cc: Alex Stienstra <alex.stienstra@zonnet.nl>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ResultSetMetaData.getTableName() == null
Date: Fri, 22 Sep 2006 15:12:53 +1200
Message-ID: <451354B5.2070701@opencloud.com> (raw)
In-Reply-To: <45133DE5.4030100@utiba.com>
References: <20060921121816.9wvu8sr34w5c4848@webmail.versatel.nl>
	<45133DE5.4030100@utiba.com>

Philip Yarra wrote:

> I don't know why it returns "" - perhaps someone else can answer that. 
> Mind you, Oracle 10g does the same. Sybase ASE 12.5 is the only DB I 
> have access to where I get a non-empty table name.

There was a long discussion about this some time ago, see 
http://archives.postgresql.org/pgsql-jdbc/2004-08/msg00023.php or 
thereabouts which is when we started agreeing on things :)

Essentially I think it boiled down to "getTableName() should return the 
table alias name", and since we don't have that available we return "". 
There's a postgresql-specific interface to get at the underlying table 
name (in the cases where that info is available).

-O



view thread (13+ messages)  latest in thread

Message-ID: <451354B5.2070701@opencloud.com>
Permalink:  ../451354B5.2070701@opencloud.com/
Also on:    postgresql.org/message-id/451354B5.2070701@opencloud.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: oliver@opencloud.com, philip@utiba.com, alex.stienstra@zonnet.nl
  Subject: Re: ResultSetMetaData.getTableName() == null
  In-Reply-To: <451354B5.2070701@opencloud.com>
  References: <20060921121816.9wvu8sr34w5c4848@webmail.versatel.nl> <45133DE5.4030100@utiba.com> <451354B5.2070701@opencloud.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