X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 684143A5E25 for ; Mon, 6 Dec 2004 09:12:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52243-05 for ; Mon, 6 Dec 2004 09:12:22 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 9EEB73A547D for ; Mon, 6 Dec 2004 09:12:21 +0000 (GMT) Received: (qmail 9917 invoked by uid 1112); 6 Dec 2004 09:13:49 -0000 Date: Mon, 6 Dec 2004 04:13:49 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Iain Cc: pgsql-jdbc@postgresql.org Subject: Re: meta data information returned for domains In-Reply-To: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb> Message-ID: References: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.09 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/38 X-Sequence-Number: 11704 On Fri, 3 Dec 2004, Iain wrote: > I'm using the JDBC database metadata facilities to get information about > tables for the purposes of auto generating program code. This has all been > working fine until I got to testing it on a database that uses domains as > the datatypes for the columns. > > I havn't had a chance to investigate it thoroughly yet, but it I'm getting a > datatype code of 1111 when the columns datatype is a domain. , I don't know > if this has any special meaning or not, but it doesn't correspond to any of > the java.sql types that I was comparing it to, so for now my code is broken. 1111 = Types.OTHER. We could consider resolving domains to their base types and reporting that as the sql type. That seems like it would be helpful in this situation. Kris Jurka