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 6FFEB5281E for ; Wed, 29 Jun 2005 19:24:14 -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 79075-01 for ; Wed, 29 Jun 2005 22:24:07 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id C9EBF52956 for ; Wed, 29 Jun 2005 19:24:06 -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 1DnkyV-0003WH-6b; Thu, 30 Jun 2005 10:24:07 +1200 Message-ID: <42C31F86.8050205@opencloud.com> Date: Thu, 30 Jun 2005 10:24:06 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: List Subject: Re: jdbc cts final diff for review References: <688EEEFD-78B1-4C09-8CE8-E17520725AA2@fastcrypt.com> <42C29F6D.4060001@opencloud.com> <1F04D083-97E3-4C00-8806-B107991AE27E@fastcrypt.com> In-Reply-To: <1F04D083-97E3-4C00-8806-B107991AE27E@fastcrypt.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.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/173 X-Sequence-Number: 13135 Dave Cramer wrote: >> You seem to have reverted your earlier changes and put back the >> types/* classes -- why? > > huh ? they should be in there in HEAD, I did remove the creation of an > object, and went to static methods HEAD went through this progression: (1) no types/* (2) you added types/PGByte, etc (3) you removed types/* and added static methods Your patch does things like this: > --- 1500,1520 ---- > preparedParameters.clear(); > } > > ! private PGType createInternalType( Object x, int targetType ) throws PSQLException > { > ! if ( x instanceof Byte ) return PGByte.castToServerType((Byte)x, targetType ); > ! if ( x instanceof Short ) return PGShort.castToServerType((Short)x, targetType ); > ! if ( x instanceof Integer ) return PGInteger.castToServerType((Integer)x, targetType ); > ! if ( x instanceof Long ) return PGLong.castToServerType((Long)x, targetType ); > ! if ( x instanceof Double ) return PGDouble.castToServerType((Double)x, targetType ); > ! if ( x instanceof Float ) return PGFloat.castToServerType((Float)x, targetType ); > ! if ( x instanceof BigDecimal) return PGBigDecimal.castToServerType((BigDecimal)x, targetType ); > ! // since all of the above are instances of Number make sure this is after them > ! if ( x instanceof Number ) return PGNumber.castToServerType((Number)x, targetType ); > ! if ( x instanceof Boolean) return PGBoolean.castToServerType((Boolean)x, targetType ); > ! return new PGUnknown(x); > > + } > // Helper method for setting parameters to PGobject subclasses. > private void setPGobject(int parameterIndex, PGobject x) throws SQLException { > String typename = x.getType(); which seems to be reverting back to step (2) I'm guessing you forgot to apply the changes in (3) to your working copy of the driver, then diffed against current HEAD.. -O