Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Howto set UUID ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1860 of 1994
Post > Topic >>

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

by sbierman@[EMAIL PROTECTED] (Silvio Bierman) Jan 12, 2008 at 11:13 PM

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 sup****ted 
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
 




 3 Posts in Topic:
Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3dev-60
sbierman@[EMAIL PROTECTED  2008-01-12 23:13:46 
Re: Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3de
sbierman@[EMAIL PROTECTED  2008-01-14 18:08:11 
Re: Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3de
oliver@[EMAIL PROTECTED]   2008-01-15 16:01:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 4:42:34 CDT 2008.