Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B61AE2E3E56 for ; Fri, 14 Dec 2007 12:54:20 -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 91135-05 for ; Fri, 14 Dec 2007 12:54:17 -0400 (AST) Received: from trinity.vnet-inc.com (matrix.vnet-inc.com [216.129.224.52]) by postgresql.org (Postfix) with ESMTP id 28E772E442B for ; Fri, 14 Dec 2007 12:45:04 -0400 (AST) Received: from localhost (localhost.vnet-inc.com [127.0.0.1]) by trinity.vnet-inc.com (Postfix) with ESMTP id 262F45A3C227 for ; Fri, 14 Dec 2007 09:45:03 -0700 (MST) Received: from trinity.vnet-inc.com ([127.0.0.1]) by localhost (matrix.vnet-inc.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22751-08 for ; Fri, 14 Dec 2007 09:45:02 -0700 (MST) Received: from [192.168.157.32] (unknown [216.129.226.99]) by trinity.vnet-inc.com (Postfix) with ESMTP id 3DB595A3C21B for ; Fri, 14 Dec 2007 09:45:02 -0700 (MST) Message-ID: <4762B264.9040303@ttc-cmc.net> Date: Fri, 14 Dec 2007 09:42:12 -0700 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: how to set a PreparedStatement column of XML type in 8.3? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at vnet-inc.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/121 X-Sequence-Number: 17976 Exactly my point. dana. > On Fri, 14 Dec 2007, Matt Magoffin wrote: > >> Do you think it's worth considering having the 8.3 driver do this >> automatic conversion of String <-> xml, so that users don't have to use >> PGObject or set the stringtype=unspecified connection parameter? > > > The driver can't really do that. At the time you say setString, the > driver doesn't know that the real target type is xml, so the driver's > only options are to set the parameter type to varchar (String) or > unknown (the unspecified URL parameter). > > Kris Jurka