Re: JDBC Driver can't read UUID from database

From: Kris Jurka <books(at)ejurka(dot)com>
To: Dean Schulze <dschulze(at)knowledgefactor(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: JDBC Driver can't read UUID from database
Date: 2012-06-11 21:28:07
Message-ID: alpine.BSO.2.00.1206111726250.17050@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, 11 Jun 2012, Dean Schulze wrote:

> Out of curiosity why didn't the driver map the Postgresql UUID to a Java
> UUID?
>

The example I gave of calling getString must return a String and not
another type. With a recent JDBC Driver and Java version, calling
getObject will return a UUID object.

Kris Jurka

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-06-11 22:27:44 Re: BUG #6687: initdb -A ident can almost never be correct
Previous Message Dave Page 2012-06-11 18:57:13 Re: BUG #6688: can't install from binary.