pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Віталій Тимчишин <tivv00@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: domains handling problem
Date: Sat, 19 Mar 2011 21:00:56 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1103192100090.28447@leary.csoft.net> (raw)
In-Reply-To: <AANLkTikj-D2+u=YMfPbcBcV+7tphtkwMeDjJTSTqfYnT@mail.gmail.com>
References: <AANLkTikj-D2+u=YMfPbcBcV+7tphtkwMeDjJTSTqfYnT@mail.gmail.com>



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
>         atorg.postgresql.jdbc2.AbstractJdbc2Statement.setObject(AbstractJdbc2Statemen
> t.java:1745)
> 
> After looking a little deeper I've foudn out that driver report domain type
> 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 did
> 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


view thread (3+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1103192100090.28447@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1103192100090.28447@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1103192100090.28447@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, tivv00@gmail.com
  Subject: Re: domains handling problem
  In-Reply-To: <alpine.BSO.2.00.1103192100090.28447@leary.csoft.net>
  References: <AANLkTikj-D2+u=YMfPbcBcV+7tphtkwMeDjJTSTqfYnT@mail.gmail.com> <alpine.BSO.2.00.1103192100090.28447@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox