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 A203052848 for ; Thu, 26 May 2005 22:13:42 -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 52299-02 for ; Fri, 27 May 2005 01:13:34 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id B95E652859 for ; Thu, 26 May 2005 22:13:33 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DbTPt-00061L-Iy; Fri, 27 May 2005 13:13:37 +1200 Message-ID: <42967445.60503@opencloud.com> Date: Fri, 27 May 2005 01:13:41 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com Cc: pgsql-jdbc@postgresql.org Subject: Re: BIGINT <-> java.lang.String auto cast References: <4294BAAE.4080106@fastcrypt.com> <42955CC9.6040306@opencloud.com> <4295B69E.1070308@fastcrypt.com> <42965917.7090206@opencloud.com> <4296675D.6060505@fastcrypt.com> <42966881.2000609@opencloud.com> <42966D6E.1080007@fastcrypt.com> <42967221.20505@opencloud.com> <42967356.2060507@fastcrypt.com> In-Reply-To: <42967356.2060507@fastcrypt.com> 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.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/123 X-Sequence-Number: 12954 Dave Cramer wrote: > I recall it now, this isn't sufficient for the plethora of conversions > which have to be made. > > Basically what I did was create an internal type for every SQL type in > org.postgresql.types > > and I do one set of instanceof as below to determine which type to > create, and then > do a convert based on the sqltype passed in. Yeah, I was considering something similar, but the current scheme was sufficiently simple that it didn't seem worth it. > I'll commit the patch tomorrow What conversions does your patch add? (can you post the patch?) -O