Re: TypeInfoCache - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: TypeInfoCache
Date
Msg-id 476D8189.4030003@opencloud.com
Whole thread Raw
In response to Re: TypeInfoCache  (dmp <danap@ttc-cmc.net>)
List pgsql-jdbc
dmp wrote:

> I would rather not have to CAST or import non-standard types which are not
> defined in the Sun JDBC. If you wish to have them at least make the driver
> except a generic string setter method like the getter.

You can now do this in CVS HEAD by using setObject(n, someStringObject,
Types.OTHER). Or you can enable it globally for all strings by using
"stringtype=unspecified" at the cost of less type safety (which I
wouldn't recommend)

Normally the meaning of setString() is pretty explicit, though - it says
that you want the target type to be text or varchar. If the underlying
database type is something different, I don't think it's unreasonable to
require you to either use a different method, or put a cast in your query.

-O


pgsql-jdbc by date:

Previous
From: dmp
Date:
Subject: Re: TypeInfoCache
Next
From: Christian Schröder
Date:
Subject: Re: Missing fields in getColumns() result