Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id CDBB82E004F for ; Thu, 22 Nov 2007 02:27:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 25376-06 for ; Thu, 22 Nov 2007 02:27:38 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 1D3102E0035 for ; Thu, 22 Nov 2007 02:26:56 -0400 (AST) Received: (qmail 16380 invoked by uid 1112); 22 Nov 2007 06:26:56 -0000 Date: Thu, 22 Nov 2007 01:26:56 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Eric Lenio cc: Marek Lewczuk , pgsql-jdbc Subject: Re: AbstractJdbc2Array - another patch In-Reply-To: <20071122060905.GB25875@lenio.net> Message-ID: References: <470DE5E7.2090807@lewczuk.com> <47172FF2.6070203@lewczuk.com> <4717A074.4000109@ejurka.com> <4721D42E.4060107@lewczuk.com> <47222D11.5010006@lewczuk.com> <4726F311.8090001@lewczuk.com> <20071122060905.GB25875@lenio.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/71 X-Sequence-Number: 17826 On Thu, 22 Nov 2007, Eric Lenio wrote: > Kris/Marek: I've attached a very small followup patch which addresses a > need I had: I was using java.sql.DatabaseMetaData's getColumns method to > attempt to get the COLUMN_SIZE attribute for a column of type "character > varying(255) []". Without my patch (applied after Kris's patches) the > COLUMN_SIZE would be 2147483647, with the patch it would be 255. I am > by no means a JDBC or Postgresql expert, so maybe I am way off base. > What do you think? > Looks reasonable, but way too specific. We don't want to do that for each array type. At the top of each of the methods that have the switch statements we should have something that checks to see if it is an array type and converts the oid to the oid of the base type. Kris Jurka