X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 929D19FB371 for ; Thu, 21 Sep 2006 23:01:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 86277-04-2 for ; Thu, 21 Sep 2006 23:01:36 -0300 (ADT) X-Greylist: delayed 00:25:56.543121 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 16A679FB3A9 for ; Thu, 21 Sep 2006 23:01:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.utiba.com.au (eth2643.vic.adsl.internode.on.net [150.101.158.82]) by svr4.postgresql.org (Postfix) with ESMTP id D347A5AFA2F for ; Fri, 22 Sep 2006 01:35:36 +0000 (GMT) Received: from localhost (scan1.utiba.com.au [127.0.0.1]) by mail.utiba.com.au (Postfix) with ESMTP id 6EFF1444C7; Fri, 22 Sep 2006 11:35:30 +1000 (EST) Received: from mail.utiba.com.au ([127.0.0.1]) by localhost (scan1.utiba.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22972-10; Fri, 22 Sep 2006 11:35:25 +1000 (EST) Received: from [192.168.0.49] (pc49.utiba.melb [192.168.0.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.utiba.com.au (Postfix) with ESMTP id ED7F3444C0; Fri, 22 Sep 2006 11:35:24 +1000 (EST) Message-ID: <45133DE5.4030100@utiba.com> Date: Fri, 22 Sep 2006 11:35:33 +1000 From: Philip Yarra User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alex Stienstra Cc: pgsql-jdbc@postgresql.org Subject: Re: ResultSetMetaData.getTableName() == null References: <20060921121816.9wvu8sr34w5c4848@webmail.versatel.nl> In-Reply-To: <20060921121816.9wvu8sr34w5c4848@webmail.versatel.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at utiba.com.au X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/87 X-Sequence-Number: 15805 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