Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [JDBC] how to set a PreparedStatement column of XML type in 8.3?

From: Kris Jurka <books(at)ejurka.com>
Date: Fri Dec 14 2007 - 15:31:08 EST

On Sat, 15 Dec 2007, Matt Magoffin wrote:

> 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?

Sounds like a good idea to me. Right now it bails out with the following, so it's not like we'd be breaking anything that's working...

org.postgresql.util.PSQLException: Cannot cast an instance of java.lang.String to type Types.OTHER

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq Received on Fri Dec 14 15:32:37 2007

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:41:32 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library