Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E05832E303C for ; Mon, 17 Dec 2007 00:16:41 -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 37963-08 for ; Mon, 17 Dec 2007 00:16:38 -0400 (AST) Received: from fep01.xtra.co.nz (fep01.xtra.co.nz [210.54.141.245]) by postgresql.org (Postfix) with ESMTP id 6C7862E300B for ; Mon, 17 Dec 2007 00:16:35 -0400 (AST) Received: from mta04.xtra.co.nz ([172.23.11.41]) by fep01.xtra.co.nz with ESMTP id <20071217041634.IAJM29570.fep01.xtra.co.nz@mta04.xtra.co.nz>; Mon, 17 Dec 2007 17:16:34 +1300 Received: from fep04.xtra.co.nz ([172.23.12.41]) by mta04.xtra.co.nz with ESMTP id <20071217041634.HXUX28381.mta04.xtra.co.nz@fep04.xtra.co.nz>; Mon, 17 Dec 2007 17:16:34 +1300 Received: from x1000.msqr.us ([125.236.166.246]) by fep04.xtra.co.nz with ESMTP id <20071217041634.RAPP17371.fep04.xtra.co.nz@x1000.msqr.us>; Mon, 17 Dec 2007 17:16:34 +1300 Received: from x1000.msqr.us (x1000.msqr.us [127.0.0.1]) by x1000.msqr.us (8.13.1/8.13.1) with ESMTP id lBH4GW1A012365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 Dec 2007 17:16:33 +1300 Received: (from apache@localhost) by x1000.msqr.us (8.13.1/8.13.1/Submit) id lBH4GQqw012363; Mon, 17 Dec 2007 17:16:26 +1300 Received: from 192.168.1.108 (SquirrelMail authenticated user matt) by msqr.us with HTTP; Mon, 17 Dec 2007 17:16:26 +1300 (NZDT) Message-ID: <50955.192.168.1.108.1197864986.squirrel@msqr.us> In-Reply-To: References: <51046.192.168.1.108.1197434523.squirrel@msqr.us> <50753.192.168.1.108.1197501684.squirrel@msqr.us> <50997.192.168.1.108.1197506381.squirrel@msqr.us> <59655.192.168.1.108.1197614334.squirrel@msqr.us> <49230.192.168.1.108.1197663372.squirrel@msqr.us> Date: Mon, 17 Dec 2007 17:16:26 +1300 (NZDT) Subject: Re: how to set a PreparedStatement column of XML type in 8.3? From: "Matt Magoffin" To: "Kris Jurka" Cc: pgsql-jdbc@postgresql.org User-Agent: SquirrelMail/1.4.8-4.0.1.el4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/126 X-Sequence-Number: 17981 >> What about with calls to setObject(int, Object, int) when a String is >> passed in and the type set to Types.OTHER? Would it be possible then... >> say if Object is a String, to treat it as if the stringtype=unspecified >> parameter was set? > > I've implemented this for the 8.3 driver in CVS. It takes > Object.toString() of anything given with Types.OTHER, so it doesn't > necessarily need to be in String form already. > > I've uploaded some jars here if you want to give it a test. > > http://ejurka.com/pgsql/jars/mm/ Yep, that did the trick for me. Thanks! -- m@