Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 67F1C98F709 for ; Tue, 5 Jun 2012 20:27:10 -0300 (ADT) Received: from hub024-ca-4.exch024.serverdata.net ([64.78.56.81]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sc39Y-0005Lo-8i for pgsql-bugs@postgresql.org; Tue, 05 Jun 2012 23:27:09 +0000 Received: from MBX024-W1-CA-5.exch024.domain.local ([10.254.10.55]) by HUB024-CA-4.exch024.domain.local ([10.254.10.39]) with mapi id 14.02.0283.003; Tue, 5 Jun 2012 16:26:54 -0700 From: Dean Schulze To: "pgsql-bugs@postgresql.org" Subject: JDBC Driver can't read UUID from database Thread-Topic: JDBC Driver can't read UUID from database Thread-Index: AQHNQ3KwsGhwOY9PgES3PKvcQnGqQg== Date: Tue, 5 Jun 2012 23:26:53 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [173.160.63.169] Content-Type: multipart/alternative; boundary="_000_CBF3F1DC2E8dschulzeknowledgefactorcom_" MIME-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/39 X-Sequence-Number: 33266 --_000_CBF3F1DC2E8dschulzeknowledgefactorcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm using Hibernate (3.6 and 4.0) with Postgresql 9.1. Our tables have UUI= Ds in them and your driver is trying to convert UUIDs to longs: Caused by: org.postgresql.util.PSQLException: Bad value for type long : dba= da1e4-a165-4601-b34e-d08428cd81df at org.postgresql.jdbc2.AbstractJdbc2ResultSet.toLong(AbstractJdbc2ResultSe= t.java:2796) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getLong(AbstractJdbc2ResultS= et.java:2019) at org.postgresql.jdbc4.Jdbc4ResultSet.getBlob(Jdbc4ResultSet.java:52) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBlob(AbstractJdbc2ResultS= et.java:335) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.hibernate.engine.jdbc.internal.proxy.AbstractResultSetProxyHandler.c= ontinueInvocation(AbstractResultSetProxyHandler.java:104) ... 32 more I've tried chaining the Hibernate annotations to treat them as Strings and = CLOBs but I get the same exception. Driver versions I've tried are 9.0-801.jdbc4 and 9.1-901.jdbc4 This is a show stopper. --_000_CBF3F1DC2E8dschulzeknowledgefactorcom_ Content-Type: text/html; charset="us-ascii" Content-ID: <30F8D41DEECE2F4B8781E243C38CBE7D@exch024.domain.local> Content-Transfer-Encoding: quoted-printable

I'm using Hibernate (3.6 and 4.0) with Postgresql 9.1.  Our table= s have UUIDs in them and your driver is trying to convert UUIDs to longs:

Caused by: org.postgresql.= util.PSQLException: Bad value for type long : dbada1e4-a165-4601-b34= e-d08428cd81df

at o= rg.postgresql.jdbc2.AbstractJdbc2ResultSet.toLong(AbstractJdbc2ResultSet.java:2796)=

at o= rg.postgresql.jdbc2.AbstractJdbc2ResultSet.getLong(AbstractJdbc2ResultSet.java:2019= )

at o= rg.postgresql.jdbc4.Jdbc4ResultSet.getBlob(Jdbc4ResultSet.java:52)

at o= rg.postgresql.jdbc2.AbstractJdbc2ResultSet.getBlob(AbstractJdbc2ResultSet.java:335)=

at s= un.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at s= un.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at s= un.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25= )

at j= ava.lang.reflect.Method.invoke(Method.java:597)

at o= rg.hibernate.engine.jdbc.internal.proxy.AbstractResultSetProxyHandler.conti= nueInvocation(A= bstractResultSetProxyHandler.java:104)

... = 32 more


I've tried chaining the Hibernate annotations to treat them as Strings= and CLOBs but I get the same exception.

Driver versions I've tried are 9= .0-801.jdbc4 and 9.1-901.jdbc4

This is a show stopp= er.
--_000_CBF3F1DC2E8dschulzeknowledgefactorcom_--