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 4CE8D9F9C9E for ; Mon, 15 May 2006 19:22:38 -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 86875-06 for ; Mon, 15 May 2006 19:22:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id A29749F9C18 for ; Mon, 15 May 2006 19:22:32 -0300 (ADT) Received: (qmail 28972 invoked by uid 1112); 15 May 2006 22:22:31 -0000 Date: Mon, 15 May 2006 17:22:31 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Jason Porter cc: pgsql-jdbc@postgresql.org Subject: Re: JPOX Types.CHAR error In-Reply-To: <1C47F9167B873F489B45243528C5EF03BED99B@studentmail.Student.Northface.local> Message-ID: References: <1C47F9167B873F489B45243528C5EF03BED99B@studentmail.Student.Northface.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/48 X-Sequence-Number: 15176 On Mon, 15 May 2006, Jason Porter wrote: > I'm playing around with JPOX right now trying to get things to work, but > I'm having a problem with mapping the Java types to the JDBC types it > seems like. JPOX comes back and tells me that the JDBC driver doesn't > support Types.CHAR, which I find very hard to believe. > > 22:47:00,978 (main) ERROR [JPOX.SchemaTool] - An exception was thrown > during the operation of SchemaTool. Please refer to the log for full > details. The following may help : Failed to generate new Mapping of type > org.jpox.store.rdbms.mapping.CharRDBMSMapping, exception : JDBC type > "Types.CHAR" not supported by the JDBC driver. Please check your > specification of "jdbc-type" and the driver capabilities. > at > org.jpox.store.rdbms.adapter.DatabaseAdapter.getTypeInfo(DatabaseAdapter > .java:706) > > at > org.jpox.store.rdbms.mapping.CharRDBMSMapping.getTypeInfo(CharRDBMSMappi > ng.java:205) A quick check reveals nothing obviously wrong with how DatabaseMetaData.getTypeInfo returns data for Types.CHAR. The best thing to do would probably add some debugging code to JPOX to show how it sets up its type information and what it thinks is has available when the failing call is made. Kris Jurka