|
|||||||||||
|
[JDBC] Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3dev-602.jdbc3.jar
From: Silvio Bierman <sbierman(at)jambo-software.com>
Date: Sat Jan 12 2008 - 17:13:46 EST
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
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
Received on Sat Jan 12 17:15:57 2008This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:42:39 EDT |
||||||||||
|
|||||||||||