Skip site navigation (1) Skip section navigation (2)

pgsql jdbc setObject JAVA_OBJECT error

From: tyju tiui <jckdnk111(at)yahoo(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: pgsql jdbc setObject JAVA_OBJECT error
Date: 2007-12-18 21:00:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc

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

I'm using build 8.2 Build 507 of the jdbc driver with PostgreSQL 8.2.5 on a Debian Etch server with Java 1.6.
Here's the snippet which throws the error above:
    pstatement.setObject(1, myPojoInst, java.sql.Types.JAVA_OBJECT);

Any idea what I'm doing wrong?



Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


pgsql-jdbc by date

Next:From: Kris JurkaDate: 2007-12-18 21:10:40
Subject: Re: pgsql jdbc setObject JAVA_OBJECT error
Previous:From: Kris JurkaDate: 2007-12-18 16:15:18
Subject: Re: Missing fields in getColumns() result

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group