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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

JAVA_OBJECT: Unkown type



Hi,
i am using java1.5.0 and postgres8.2dev-503
I am trying to store a Java-Object from within a Javaprogramm by calling 'ps.setObject(2,myObject,java.sql.Types.JAVA_OBJECT);'

Unfortuntely this results in:
org.postgresql.util.PSQLException: unkown type: 2.000.
        at org.postgresql.jdbc2.AbstractJdbc2Statement.setObject(AbstractJdbc2Statement.java:1680)
        at org.postgresql.jdbc3.AbstractJdbc3Statement.setObject(AbstractJdbc3Statement.java:1435)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.setObject(AbstractJdbc2Statement.java:1686)

what is the reason for that? What do i have to do, to get rid of that?

Thank you,
Julian



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group