[Pljava-dev] uuid datatypes and prepared statements

Lucas Madar lucas at mcsnw.com
Wed Jun 24 03:00:44 UTC 2009


I'm running into a weird error when using prepared statements within 
pl/java:

ERROR:  operator does not exist: uuid = text

This is from a very basic query of "SELECT xxx FROM table WHERE uuid=?". 
The table's column type is uuid and the java native type is String. It 
works fine via plain JDBC and also works via pl/java if I use a ::uuid 
after the query. However, this makes maintaining these queries a mess. 
I'm running postgres 8.3.7.

Has anyone else experienced this?

Thanks,
Lucas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pgfoundry.org/pipermail/pljava-dev/attachments/20090623/441c423b/attachment.html>


More information about the Pljava-dev mailing list