Re: pgsql jdbc setObject JAVA_OBJECT error - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: pgsql jdbc setObject JAVA_OBJECT error
Date
Msg-id Pine.BSO.4.64.0712181609290.31009@leary.csoft.net
Whole thread Raw
In response to pgsql jdbc setObject JAVA_OBJECT error  (tyju tiui <jckdnk111@yahoo.com>)
List pgsql-jdbc

On Tue, 18 Dec 2007, tyju tiui wrote:

> I'm trying to use the 'setObject' method of a preparedStatement to store
> a POJO and I'm getting an error:
>    org.postgresql.util.PSQLException: Unsupported Types value: 2,000
>

The postgresql JDBC driver currently does not support storing Java objects
directly like this.  Perhaps you could serialize them yourself and store
them in a bytea field?

Kris Jurka


pgsql-jdbc by date:

Previous
From: tyju tiui
Date:
Subject: pgsql jdbc setObject JAVA_OBJECT error
Next
From: danap@ttc-cmc.net
Date:
Subject: Re: find foreign key name