Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9AB321179B40 for ; Wed, 6 Jun 2012 05:13:13 -0300 (ADT) Received: from mail63.csoft.net ([205.205.214.4]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ScBMd-0007nt-Mo for pgsql-bugs@postgresql.org; Wed, 06 Jun 2012 08:13:12 +0000 Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 2FBBB2846A; Wed, 6 Jun 2012 04:12:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=QwGL3qDvVNMCwamfS/YWeQ2Rgt4=; b=ivp6hi izfCsOH8LWexd9i9oUhhbaiZN0tGUUzwLdABoYSRYHAYjzvcqEdpBvWZPKreOvlL uBsSxIN0VjVjW6VTQp7qnzdSDg9xz/0xQGiXuJPMLA+tS4KCq/8fhUA7v505RIWh I0f1iSAcCSv2iroeO29KoMrsNS1pDvC7iDgX0= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 0976128415; Wed, 6 Jun 2012 04:12:58 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 8FE4AA39D; Wed, 6 Jun 2012 04:12:57 -0400 (EDT) Date: Wed, 6 Jun 2012 04:12:56 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Dean Schulze cc: "pgsql-bugs@postgresql.org" Subject: Re: JDBC Driver can't read UUID from database In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 201206/42 X-Sequence-Number: 33269 On Tue, 5 Jun 2012, Dean Schulze wrote: >=20 > I'm using Hibernate (3.6 and 4.0) with Postgresql 9.1. =A0Our tables have > UUIDs in them and your driver is trying to convert UUIDs to longs: >=20 This is a hibernate mapping problem, not a JDBC Driver problem. If you=20 have a plain ResultSet and call getString() on a UUID field, it will=20 certainly work. Mapping the UUID to BLOB or CLOB is incorrect. I'm not=20 sure why your attempt to map it to a String didn't work, but you are=20 not convincing Hibernate to use a plain getString call. Kris Jurka=