Re: JPOX Types.CHAR error

From: Andy Jefferson <andy(at)jpox(dot)org>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JPOX Types.CHAR error
Date: 2006-05-16 09:08:46
Message-ID: 200605161108.46840.andy@jpox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Tuesday 16 May 2006 10:57, Andy Jefferson wrote:
> > I'm not sure there's a good reason that "char" isn't returned as
> > Types.CHAR, but you definitely want to be using bpchar as the default
> > mapping for Types.CHAR.
>
> Thanks for the reply Kris. Only one question. Has "bpchar" existed in
> Postgresql for some time (e.g versions 7.0 onwards) or is it recent ? We
> (JPOX) need to support many versions of Postgresql and I don't want to
> change historical support here.

Also, I cannot do bpchar(100) whereas I can do char(100) ... the precision
returned by getTypeInfo is limited to 9 for bpchar whereas is 65000 for char.

--
Andy

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Andy Jefferson 2006-05-16 09:13:01 Re: JPOX Types.CHAR error
Previous Message Andy Jefferson 2006-05-16 08:57:09 Re: JPOX Types.CHAR error