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 4921F3A5E38 for ; Mon, 6 Dec 2004 10:30:41 +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 72946-08 for ; Mon, 6 Dec 2004 10:30:36 +0000 (GMT) Received: from millenium.mst.co.jp (unknown [210.230.185.241]) by svr1.postgresql.org (Postfix) with ESMTP id 36A493A5E67 for ; Mon, 6 Dec 2004 10:30:37 +0000 (GMT) Received: from mst1x5r347kymb (lc12114 [192.168.1.114]) by millenium.mst.co.jp (8.11.6p2/3.7W) with SMTP id iB6AUWZ13560; Mon, 6 Dec 2004 19:30:32 +0900 Message-ID: <003d01c4db7e$c1e50330$7201a8c0@mst1x5r347kymb> From: "Iain" To: "Kris Jurka" Cc: References: <00ac01c4d8e6$099390c0$7201a8c0@mst1x5r347kymb> Subject: Re: meta data information returned for domains Date: Mon, 6 Dec 2004 19:31:28 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/41 X-Sequence-Number: 11707 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