Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id CC9189FC989 for ; Fri, 26 Oct 2007 08:49:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 87145-04 for ; Fri, 26 Oct 2007 08:49:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp.host.kei.pl (v681.rev.tld.pl [195.149.226.81]) by postgresql.org (Postfix) with ESMTP id CD62E9FC5AD for ; Fri, 26 Oct 2007 08:49:11 -0300 (ADT) Received: (qmail 21312 invoked by uid 681007); 26 Oct 2007 11:49:09 -0000 X-clamdmail: clamdmail 0.18a Received: from linux.samar.pl (HELO ?172.16.1.38?) (marek@lewczuk.com@87.204.17.90) by smtp.host.kei.pl with ESMTPA; 26 Oct 2007 11:49:09 -0000 Message-ID: <4721D42E.4060107@lewczuk.com> Date: Fri, 26 Oct 2007 13:49:02 +0200 From: Marek Lewczuk User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Kris Jurka CC: pgsql-jdbc Subject: Re: AbstractJdbc2Array - another patch References: <470DE5E7.2090807@lewczuk.com> <47172FF2.6070203@lewczuk.com> <4717A074.4000109@ejurka.com> In-Reply-To: <4717A074.4000109@ejurka.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/148 X-Sequence-Number: 17720 Kris Jurka pisze: > Doh! OK, now it mostly works, but there's still an issue with setting > the basetype on a subarray to the base element type instead of an array > type, as attached. rs.getObject() (and metadata) are confused about > what the correct type is. I see the problem. I assume that we need to add support for array types, which means that org.postgresql.core.Oid must have oid for every base type array, e.g. _INT2 = 1005. It will be also required to add appropriate data within org.postgresql.jdbc2.TypeInfoCache#types. Should I do it ? Regards, Marek Lewczuk