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 EF1883A581B for ; Wed, 26 Jan 2005 21:20:02 +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 58863-06 for ; Wed, 26 Jan 2005 21:19:59 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id DF29E3A57D9 for ; Wed, 26 Jan 2005 21:19:58 +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 1CtuZr-00072J-00; Thu, 27 Jan 2005 10:19:51 +1300 Message-ID: <41F80972.2010308@opencloud.com> Date: Thu, 27 Jan 2005 10:19:46 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jean-Pierre Pelletier Cc: Kris Jurka , pgsql-jdbc@postgresql.org Subject: Re: setObject on PGInterval throws "Unknown Type null" References: <41F557C8.6030805@opencloud.com> <41F6B5CE.3040107@opencloud.com> <41F6D3EC.5000103@opencloud.com> <41F6D733.7010702@opencloud.com> <41F7F3D0.90809@opencloud.com> In-Reply-To: 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.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/268 X-Sequence-Number: 12148 Jean-Pierre Pelletier wrote: > The advantage of overloaded versions of setObject over new method names > was to > provide backward compatibility for setObject(i,x) > i.e. no need to recode setObject(i,x) to setObject(i,x,Types.someType) > because setObject(i,x) is now broken with null objects. How is this backwards-compatible? Without recompilation, adding extra methods doesn't do anything. With recompilation, you need to add a cast to PGStatement to see the new methods. If you're changing the code anyway, why not just change to the typed setObject() variant? -O