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

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

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: BIGINT <-> java.lang.String auto cast
Next
From: "Dilan"
Date:
Subject: Dynamically Out put a image in Jsp