X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 33DDB9F9CEE for ; Tue, 16 May 2006 06:08:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 01133-05 for ; Tue, 16 May 2006 06:08:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from roobarb.ajsoft.net (169.Red-83-54-160.dynamicIP.rima-tde.net [83.54.160.169]) by postgresql.org (Postfix) with ESMTP id B76379F944D for ; Tue, 16 May 2006 06:08:52 -0300 (ADT) Received: from roobarb.ajsoft.net (roobarb.ajsoft.net [127.0.0.1]) by roobarb.ajsoft.net (Postfix) with ESMTP id 282B45E75E for ; Tue, 16 May 2006 11:08:49 +0200 (CEST) From: Andy Jefferson Organization: JPOX To: pgsql-jdbc@postgresql.org Subject: Re: JPOX Types.CHAR error Date: Tue, 16 May 2006 11:08:46 +0200 User-Agent: KMail/1.8.2 References: <200605160908.05250.andy@jpox.org> <200605161057.09782.andy@jpox.org> In-Reply-To: <200605161057.09782.andy@jpox.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605161108.46840.andy@jpox.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/54 X-Sequence-Number: 15182 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