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 B4B6F9FA56A for ; Tue, 16 May 2006 04:39:40 -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 85679-04 for ; Tue, 16 May 2006 04:39:32 -0300 (ADT) X-Greylist: delayed 00:31:19.865571 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 317659FA278 for ; Tue, 16 May 2006 04:39:31 -0300 (ADT) Received: from roobarb.ajsoft.net (169.Red-83-54-160.dynamicIP.rima-tde.net [83.54.160.169]) by svr4.postgresql.org (Postfix) with ESMTP id 1055A5B1FA7 for ; Tue, 16 May 2006 07:08:10 +0000 (GMT) Received: from roobarb.ajsoft.net (roobarb.ajsoft.net [127.0.0.1]) by roobarb.ajsoft.net (Postfix) with ESMTP id 6A7485E75B for ; Tue, 16 May 2006 09:08:06 +0200 (CEST) From: Andy Jefferson To: pgsql-jdbc@postgresql.org Subject: Re: JPOX Types.CHAR error Date: Tue, 16 May 2006 09:08:04 +0200 User-Agent: KMail/1.8.2 Organization: JPOX MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605160908.05250.andy@jpox.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/51 X-Sequence-Number: 15179 > A quick check reveals nothing obviously wrong with how > DatabaseMetaData.getTypeInfo returns data for Types.CHAR. Well that depends on your point of view ;-) PSQL 8.1-405 JDBC driver now returns SQL type "char" as Types.OTHER (instead of Types.CHAR), and returns "bpchar" as Types.CHAR. Since PSQL has always supported "char" as Types.CHAR (since it kinda seems reasonable), JPOX uses that as the default ... and it is no longer there (yet is in PSQL 8.0). I can set up JPOX to fake this type for users so they see no change but it would make more sense (to me) to have the JDBC driver return consistent with previous incarnations. Maybe there was a good reason why "char" is no longer Types.CHAR ? -- Andy