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:56:18 +1200
Message-ID: <45135EE2.6020507@opencloud.com> (raw)
In-Reply-To: <45135D9B.50500@utiba.com>
References: <20060921121816.9wvu8sr34w5c4848@webmail.versatel.nl>
	<45133DE5.4030100@utiba.com>
	<451354B5.2070701@opencloud.com>
	<45135D9B.50500@utiba.com>

Philip Yarra wrote:
> Oliver Jowett wrote:
> 
>> 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).
> 
> 
> Hmmm... maybe I'm missing something, but the attached test case doesn't 
> use any aliases, and it returns "" (at least it does for me). Is this 
> expected behaviour? If there's a postgresql-specific way to get it, 
> couldn't this method implement the same way of getting it?

We don't know whether aliases have been used or not so we can't do this.

-O



view thread (13+ messages)  latest in thread

Message-ID: <45135EE2.6020507@opencloud.com>
Permalink:  ../45135EE2.6020507@opencloud.com/
Also on:    postgresql.org/message-id/45135EE2.6020507@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: <45135EE2.6020507@opencloud.com>
  References: <20060921121816.9wvu8sr34w5c4848@webmail.versatel.nl> <45133DE5.4030100@utiba.com> <451354B5.2070701@opencloud.com> <45135D9B.50500@utiba.com> <45135EE2.6020507@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