X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 193645299E for ; Tue, 9 Aug 2005 19:51:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28845-10 for ; Tue, 9 Aug 2005 22:50:52 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 2F1C45289C for ; Tue, 9 Aug 2005 19:50:46 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E2cvp-0004Ag-Bu; Wed, 10 Aug 2005 10:50:49 +1200 Message-ID: <42F93348.3000202@opencloud.com> Date: Wed, 10 Aug 2005 10:50:48 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Thomas Dudziak Cc: pgsql-jdbc@postgresql.org Subject: Re: Missing functionality in ResultSetMetaData ? References: <224f323405080913385a38ece0@mail.gmail.com> <224f323405080914194be16ac3@mail.gmail.com> In-Reply-To: <224f323405080914194be16ac3@mail.gmail.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/54 X-Sequence-Number: 13623 Thomas Dudziak wrote: > Ok, thanks, I see. However, from what I read in the thread the > question in the mail that you referenced, as to why > PGResultSetMetadata does not extend ResultSetMetadata, and as a result > the getTableName method is mapped onto getBaseTableName, is still > valid IMO. Especially if the information seems to be readily > available. Would you consider this change for an upcoming release ? Err, all I was suggesting in that mail was that PGResultSetMetadata extend ResultSetMetaData so you can do this: PGResultSetMetadata md = (PGResultSetMetadata)rs.getMetaData(); String baseName = md.getBaseTableName(...); String aliasName = md.getTableName(...); Currently you can't do that because PGResultSetMetadata has no getTableName() method; you have to sometimes deal with the standard interface and sometimes with the extension interface, depending on the method you call. It would not change the behaviour of getBaseTableName or getTableName() at all; it's merely a syntactic convenience. I'm not sure what you thought I meant, but it was obviously something different :) -O