From: Kris Jurka <books@ejurka.com>
To: Iain <iain@mst.co.jp>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: meta data information returned for domains
Date: Mon, 6 Dec 2004 04:13:49 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0412060412160.4347@leary.csoft.net> (raw)
In-Reply-To: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb>
References: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, iain@mst.co.jp
Subject: Re: meta data information returned for domains
In-Reply-To: <Pine.BSO.4.56.0412060412160.4347@leary.csoft.net>
References: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb> <Pine.BSO.4.56.0412060412160.4347@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox