Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 068771337BBC for ; Sat, 19 Mar 2011 22:01:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 70415-10 for ; Sun, 20 Mar 2011 01:00:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 8601A133740B for ; Sat, 19 Mar 2011 22:00:56 -0300 (ADT) Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 9A32228403; Sat, 19 Mar 2011 21:00:56 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 60DE5A3DA; Sat, 19 Mar 2011 21:00:56 -0400 (EDT) Date: Sat, 19 Mar 2011 21:00:56 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?KOI8-U?B?96bUwcymyiD0yc3eydvJzg==?= cc: pgsql-jdbc@postgresql.org Subject: Re: domains handling problem In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 201103/36 X-Sequence-Number: 21591 On Tue, 22 Feb 2011, ??????? ???????? wrote: > Today I've got next exception on postgresql 9..0-801 jdbc4 driver: > Caused by: org.postgresql.util.PSQLException: Unsupported Types value: 2,= 001 > =A0=A0 =A0 =A0 =A0atorg.postgresql.jdbc2.AbstractJdbc2Statement.setObject= (AbstractJdbc2Statemen > t.java:1745) >=20 > After looking a little deeper I've foudn out that driver report domain ty= pe > as Types.DISTINCT, but does not accept it in setObject call. And spring > library uses metadata to fill default SQL types to be sent to driver. I d= id > a workaround by hard-wiring Types.OTHER, but I suppose this to be driver = bug > as driver should accept any sql type it provides from metadata. > I concur. Fixed in CVS for 8.2+. Kris Jurka=