From: Iain <iain@mst.co.jp>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: meta data information returned for domains
Date: Mon, 6 Dec 2004 19:31:28 +0900
Message-ID: <003d01c4db7e$c1e50330$7201a8c0@mst1x5r347kymb> (raw)
References: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb>
<Pine.BSO.4.56.0412060412160.4347@leary.csoft.net>
Hi Kris
> 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.
I figured this one out sometime later :-) I ignored Types.OTHER when I
originaly wrote the code on the basis that I didn't know what it was for -
always a mistake.
>> So far I've tried using the "SOURCE_DATA_TYPE" column of the result set
>> returned by getColumns but this column doesn't exist.
>
> This is an addition in the JDBC 3 spec that we haven't gotten around to
> adding as right now we only return JDBC 2 info. This obviously makes my
> previous suggestion obsolete and we should just implement this. This
> looks like a pretty easy thing to do except for the fact that we haven't
> yet dealt with how to return different information for JDBC 2/3 drivers
> without a lot of code duplication.
If I can use getUDT I'll be satisfied with that for the time being, but
SOURCE_DATA_TYPE would certainly be much more convenient.
I expect this question has been asked before but is there any reason why I
shouldn't use the newer driver (for v8) with 7.4.6? I assume that it would
allow me to use the getUDT method if I did that.
Thanks
Iain
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: iain@mst.co.jp, books@ejurka.com
Subject: Re: meta data information returned for domains
In-Reply-To: <003d01c4db7e$c1e50330$7201a8c0@mst1x5r347kymb>
References: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb> <Pine.BSO.4.56.0412060412160.4347@leary.csoft.net> <003d01c4db7e$c1e50330$7201a8c0@mst1x5r347kymb>
* 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