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 AC1AD3A5651 for ; Mon, 24 Jan 2005 19:36:11 +0000 (GMT) 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 89893-06 for ; Mon, 24 Jan 2005 19:36:06 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 9D5F43A5623 for ; Mon, 24 Jan 2005 19:36:06 +0000 (GMT) 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 (Exim 3.35 #1 (Debian)) id 1CtA0F-0006ls-00; Tue, 25 Jan 2005 08:35:59 +1300 Message-ID: <41F54E1A.1050609@opencloud.com> Date: Tue, 25 Jan 2005 08:35:54 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Barry Lind Cc: pgsql-jdbc@postgresql.org Subject: Re: PGResultSetMetaData References: <03E7D3E231BB7B4A915A6581D4296CC6EC5862@NSNOVPS00411.nacio.xythos.com> In-Reply-To: <03E7D3E231BB7B4A915A6581D4296CC6EC5862@NSNOVPS00411.nacio.xythos.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/234 X-Sequence-Number: 12114 Barry Lind wrote: > >>>(Kris, any reason why PGResultSetMetadata does not extend >>>ResultSetMetadata?) > > > By ResultSetMetadata I assume you mean java.sql.ResultSetMetadata. The > problem with having PGResultSetMetadata extend that interface is which > one would you end up extending? The JDBC1, JDBC2, JDBC3 or JDBC4 > version? Whichever one you're building against.. they're all called java.sql.ResultSetMetadata. The reason I ask is that the current scheme is a little awkward to use if you want to use both the standard and extra interface methods. Either you need two variables providing different interface views on the same object, or you do a lot of casting. -O