From: Kris Jurka <books@ejurka.com>
To: tyju tiui <jckdnk111@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: pgsql jdbc setObject JAVA_OBJECT error
Date: Tue, 18 Dec 2007 16:10:40 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0712181609290.31009@leary.csoft.net> (raw)
In-Reply-To: <257048.42438.qm@web51406.mail.re2.yahoo.com>
References: <257048.42438.qm@web51406.mail.re2.yahoo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, jckdnk111@yahoo.com
Subject: Re: pgsql jdbc setObject JAVA_OBJECT error
In-Reply-To: <Pine.BSO.4.64.0712181609290.31009@leary.csoft.net>
References: <257048.42438.qm@web51406.mail.re2.yahoo.com> <Pine.BSO.4.64.0712181609290.31009@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox