Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3EC672E3205 for ; Sat, 22 Dec 2007 17:28:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54722-10 for ; Sat, 22 Dec 2007 17:28:42 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 5E82F2E0079 for ; Sat, 22 Dec 2007 17:28:42 -0400 (AST) Received: from 222-154-181-228.jetstream.xtra.co.nz ([222.154.181.228] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1J6Bte-00038T-Uh; Sun, 23 Dec 2007 10:28:39 +1300 Message-ID: <476D8189.4030003@opencloud.com> Date: Sun, 23 Dec 2007 10:28:41 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dmp CC: pgsql-jdbc@postgresql.org Subject: Re: TypeInfoCache 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> In-Reply-To: <476D7BDC.1060808@ttc-cmc.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/175 X-Sequence-Number: 18030 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