Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0E7619FB2C8 for ; Mon, 16 Jul 2007 03:24:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 33769-02 for ; Mon, 16 Jul 2007 03:24:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 105029FB2C4 for ; Mon, 16 Jul 2007 03:24:35 -0300 (ADT) Received: from deluge.opencloud.co.nz ([192.168.0.16]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IAK0F-0004Nb-MP; Mon, 16 Jul 2007 18:24:15 +1200 Message-ID: <469B0F0F.2070700@opencloud.com> Date: Mon, 16 Jul 2007 18:24:15 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Kris Jurka CC: Marek Lewczuk , pgsql-jdbc@postgresql.org Subject: Re: patch - support for multi-dimensional arrays and NULL values References: <46913F83.6030806@lewczuk.com> <4691F928.9010000@lewczuk.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200707/66 X-Sequence-Number: 17240 Kris Jurka wrote: > 2) Changing from returning arrays of primitive types to arrays of > objects is necessary for null and multi-dimension support, but will > still break users code all over the place. Not sure what we can do > about that other than put a strong warning in the release notes. I was wondering which behaviour was right -- I thought returning array-of-primitive was correct per the spec at the time I wrote it, and that's why getArray() returns Object not Object[] -- but now the 1.6 javadoc says: > Note: When getArray is used to materialize a base type that maps to a primitive data type, then it is implementation-defined whether the array returned is an array of that primitive data type or an array of Object. So I suppose that .. in theory .. applications should be expecting to handle both. Ugh. -O