Re: pgsql jdbc setObject JAVA_OBJECT error

From: Kris Jurka <books(at)ejurka(dot)com>
To: tyju tiui <jckdnk111(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: pgsql jdbc setObject JAVA_OBJECT error
Date: 2007-12-18 21:10:40
Message-ID: Pine.BSO.4.64.0712181609290.31009@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message danap 2007-12-19 02:51:10 Re: find foreign key name
Previous Message tyju tiui 2007-12-18 21:00:41 pgsql jdbc setObject JAVA_OBJECT error