Skip site navigation (1) Skip section navigation (2)

Re: BIGINT <-> java.lang.String auto cast

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: BIGINT <-> java.lang.String auto cast
Date: 2005-05-27 00:44:30
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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


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
519 939 0336

In response to


pgsql-jdbc by date

Next:From: Oliver JowettDate: 2005-05-27 01:04:33
Subject: Re: BIGINT <-> java.lang.String auto cast
Previous:From: Oliver JowettDate: 2005-05-27 00:23:29
Subject: Re: BIGINT <-> java.lang.String auto cast

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group