Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4183B1337B9C for ; Fri, 8 Oct 2010 17:33:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 59497-08 for ; Fri, 8 Oct 2010 20:33:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound.vnet-inc.com (outbound.vnet-inc.com [216.146.104.103]) by mail.postgresql.org (Postfix) with ESMTP id AF5431337B83 for ; Fri, 8 Oct 2010 17:33:45 -0300 (ADT) Received: from [192.168.157.32] (te132.montanavision.com [216.220.28.132]) by outbound.vnet-inc.com (Postfix) with ESMTP id EB11B5A1A; Fri, 8 Oct 2010 14:33:45 -0600 (MDT) Message-ID: <4CAF8017.90607@ttc-cmc.net> Date: Fri, 08 Oct 2010 14:33:27 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: Thangalin , pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL data types mapped Java classes for JDBC References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/67 X-Sequence-Number: 21035 Thangalin wrote: > Hi, all. > > > Where are all the PostgreSQL data types mapped to Java classes? I have > found the following from an old mailing list message: > > 1 data_type_id Data Type Id java.lang.Integer int4 11 > > > > > That list was generated by my application which I use to do exactly what is indicated. Create/track changes that might occur in the JDBC and database backend for the data types. The application creates the data types mapping dynamically for each table and its critical that I know if changes occur. I have not created the re-generated list for the current 9.0 release, yet. I have the basics scripts and the app generates the list. It usually only takes a few minutes. I could probably put something together so others could run has needed to check their configurations. I haven't checked lately if all the data types are covered, I know enum aren't in the list. danap.