pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Jefferson <andy@jpox.org>
To: pgsql-jdbc@postgresql.org
Subject: Re: JPOX Types.CHAR error
Date: Tue, 16 May 2006 11:08:46 +0200
Message-ID: <200605161108.46840.andy@jpox.org> (raw)
In-Reply-To: <200605161057.09782.andy@jpox.org>
References: <200605160908.05250.andy@jpox.org>
	<Pine.BSO.4.63.0605160337180.28976@leary2.csoft.net>
	<200605161057.09782.andy@jpox.org>

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



view thread (9+ messages)  latest in thread

Message-ID: <200605161108.46840.andy@jpox.org>
Permalink:  ../200605161108.46840.andy@jpox.org/
Also on:    postgresql.org/message-id/200605161108.46840.andy@jpox.org

 · 

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: andy@jpox.org
  Subject: Re: JPOX Types.CHAR error
  In-Reply-To: <200605161108.46840.andy@jpox.org>
  References: <200605160908.05250.andy@jpox.org> <Pine.BSO.4.63.0605160337180.28976@leary2.csoft.net> <200605161057.09782.andy@jpox.org> <200605161108.46840.andy@jpox.org>

* 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