pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: Marek Lewczuk <newsy@lewczuk.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: patch - support for multi-dimensional arrays and NULL values
Date: Mon, 16 Jul 2007 18:24:15 +1200
Message-ID: <469B0F0F.2070700@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0707160030520.28414@leary.csoft.net>
References: <46913F83.6030806@lewczuk.com>
	<4691F928.9010000@lewczuk.com>
	<Pine.BSO.4.64.0707160030520.28414@leary.csoft.net>

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



view thread (9+ messages)  latest in thread

Message-ID: <469B0F0F.2070700@opencloud.com>
Permalink:  ../469B0F0F.2070700@opencloud.com/
Also on:    postgresql.org/message-id/469B0F0F.2070700@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, books@ejurka.com, newsy@lewczuk.com
  Subject: Re: patch - support for multi-dimensional arrays and NULL values
  In-Reply-To: <469B0F0F.2070700@opencloud.com>
  References: <46913F83.6030806@lewczuk.com> <4691F928.9010000@lewczuk.com> <Pine.BSO.4.64.0707160030520.28414@leary.csoft.net> <469B0F0F.2070700@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox