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 419DE5284B for ; Thu, 26 May 2005 21:44:45 -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 15105-01 for ; Fri, 27 May 2005 00:44:34 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 3110252848 for ; Thu, 26 May 2005 21:44:32 -0300 (ADT) Received: (qmail 21683 invoked from network); 27 May 2005 00:42:56 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 27 May 2005 00:42:56 -0000 Message-ID: <42966D6E.1080007@fastcrypt.com> Date: Thu, 26 May 2005 20:44:30 -0400 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: PostgreSQL International User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Jowett 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> In-Reply-To: <42966881.2000609@opencloud.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.025 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/120 X-Sequence-Number: 12951 Where do you see the driver doing such conversions. To answer your question all numeric types to boolean, int, long boolean types to numeric Dave Oliver Jowett wrote: > Dave Cramer wrote: > >> Well, this is defined >> >> setObject( n, Double, Types.boolean) and the backend doesn't handle it > > > Ah, ok, guess we missed that one. AFAIK the driver should handle most > of the required conversions, though -- I don't see that adding support > for (for example) double->boolean requires a complete rewrite of > setObject() as you originally suggested, we already have a structure > in place for conversions? > > What other conversions is the driver missing? > > -O > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561