Re: BIGINT <-> java.lang.String auto cast - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: BIGINT <-> java.lang.String auto cast
Date
Msg-id 42966D6E.1080007@fastcrypt.com
Whole thread Raw
In response to Re: BIGINT <-> java.lang.String auto cast  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: BIGINT <-> java.lang.String auto cast
List pgsql-jdbc
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


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: BIGINT <-> java.lang.String auto cast
Next
From: Oliver Jowett
Date:
Subject: Re: BIGINT <-> java.lang.String auto cast