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

Hi Alex,

Alex Stienstra wrote:
> GetTableName() always returns null. Can someone tell me if this is 
> considered to be a problem and if so when it will be fixed.

Are you sure it's really null? According to the javadoc for 
ResultSetMetaData, getTableName() may return "" - see 
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSetMetaData.html#getTableName(int).

I did a quick test app, and the driver version I'm using 
(postgresql-8.1-404.jdbc3.jar) returns "". If you get different, tell me 
which driver version you're using and I'll try that.

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.

Regards, Philip.

-- 
Philip Yarra
Senior Software Engineer, Utiba Pty Ltd
philip@utiba.com



view thread (13+ messages)  latest in thread

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