Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3dev-602.jdbc3.jar - Mailing list pgsql-jdbc

From Silvio Bierman
Subject Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3dev-602.jdbc3.jar
Date
Msg-id 47893B9A.1040705@jambo-software.com
Whole thread Raw
Responses Re: Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3dev-602.jdbc3.jar
List pgsql-jdbc
Hello all,

I am trying to convert an older PG database where we stored GUID keys by
explicitly converting them to byte arrays before storing them in  bytea
columns in the DB to a database where we use the new UUID type supported
by PG 8.3.

I am having trouble setting such a value through a JDBC
PreparedStatement because any stmt.setXXX(i,...) I have tried results in
an error about a mismatch between type UUID and XXX.

How can I get my PreparedStatement to work correctly?

Kind regards,

Silvio Bierman

pgsql-jdbc by date:

Previous
From: Håkan Jacobsson
Date:
Subject: Re: JBoss-related question
Next
From: Oliver Jowett
Date:
Subject: Re: Is it safe to use 8.0.14 server and 7.4 driver ?