pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: dmp <danap@ttc-cmc.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: TypeInfoCache
Date: Sun, 23 Dec 2007 10:28:41 +1300
Message-ID: <476D8189.4030003@opencloud.com> (raw)
In-Reply-To: <476D7BDC.1060808@ttc-cmc.net>
References: <47692DEB.9070307@ikoffice.de>
	<877ijan2cp.fsf@oxford.xeocode.com>
	<47693B10.3040804@ikoffice.de>
	<873atymzpu.fsf@oxford.xeocode.com>
	<4769604A.9050006@ikoffice.de>
	<476989C7.8020307@opencloud.com>
	<1811.1198113944@sss.pgh.pa.us>
	<476A4AB7.90509@ikoffice.de>
	<11679.1198165116@sss.pgh.pa.us>
	<476A9083.80407@ikoffice.de>
	<32821.216.129.226.71.1198167314.squirrel@www.webmail.mtintouch.net>
	<476AD9D7.6050708@opencloud.com>
	<476C1F7E.5020004@ttc-cmc.net>
	<476C31E9.3030708@opencloud.com>
	<476D7BDC.1060808@ttc-cmc.net>

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




view thread (32+ messages)  latest in thread

Message-ID: <476D8189.4030003@opencloud.com>
Permalink:  ../476D8189.4030003@opencloud.com/
Also on:    postgresql.org/message-id/476D8189.4030003@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, danap@ttc-cmc.net
  Subject: Re: TypeInfoCache
  In-Reply-To: <476D8189.4030003@opencloud.com>
  References: <47692DEB.9070307@ikoffice.de> <877ijan2cp.fsf@oxford.xeocode.com> <47693B10.3040804@ikoffice.de> <873atymzpu.fsf@oxford.xeocode.com> <4769604A.9050006@ikoffice.de> <476989C7.8020307@opencloud.com> <1811.1198113944@sss.pgh.pa.us> <476A4AB7.90509@ikoffice.de> <11679.1198165116@sss.pgh.pa.us> <476A9083.80407@ikoffice.de> <32821.216.129.226.71.1198167314.squirrel@www.webmail.mtintouch.net> <476AD9D7.6050708@opencloud.com> <476C1F7E.5020004@ttc-cmc.net> <476C31E9.3030708@opencloud.com> <476D7BDC.1060808@ttc-cmc.net> <476D8189.4030003@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox