X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 968E6D1B182 for ; Mon, 17 May 2004 20:25:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 40581-02 for ; Mon, 17 May 2004 20:25:00 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 8567AD1B171 for ; Mon, 17 May 2004 20:24:56 -0300 (ADT) Received: (qmail 26688 invoked from network); 17 May 2004 23:24:57 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 17 May 2004 23:24:57 -0000 Subject: Re: patch for getUDT From: Dave Cramer Reply-To: pg@fastcrypt.com To: Kris Jurka Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: References: <40A379EB.1080106@hugsmidjan.is> <1084460311.22930.15.camel@localhost.localdomain> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1084836296.22930.102.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 17 May 2004 19:24:56 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/108 X-Sequence-Number: 10118 While we don't support JAVA_OBJECT we do support struct, and distinct. Dave On Mon, 2004-05-17 at 18:41, Kris Jurka wrote: > On Thu, 13 May 2004, Dave Cramer wrote: > > > Here's a patch for getUDT, I'll apply it if nobody complains.. > > > > It seems to have some problems, most notably the fact that we don't > support UDTs. Looking at the javadoc for this function you are returing > NULL for both class_name and data_type which doesn't look like it's > allowed as type_cat and type_schem explicitly state their ability to be > null. Without class_name and data_type what information are we really > returning? If you are really just returning plain type info, how is this > different/better than getTypeInfo(). > > If you want to implement it for the sake of implementing it, the docs > state, "Note: If the driver does not support UDTs, an empty result set is > returned." I belive this is the correct thing to do. > > Kris Jurka > > > > !DSPAM:40a945e1239445479435263! > > -- Dave Cramer 519 939 0336 ICQ # 14675561