Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T44bb-0000Cl-5q for pgsql-jdbc@postgresql.org; Wed, 22 Aug 2012 06:39:55 +0000 Received: from out1.ip01ir2.opaltelecom.net ([62.24.128.237]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T44bZ-0002lJ-4Z for pgsql-jdbc@postgresql.org; Wed, 22 Aug 2012 06:39:54 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBADx+NFBPS0U//2dsb2JhbAANOLcyhk4JAQEBAQN4EQsDARQJFg8JAwIBAgFFEwgBAa1YlBKLCIQAgxwDqEc X-IronPort-AV: E=Sophos;i="4.77,808,1336345200"; d="scan'208,217";a="401596668" Received: from 79-75-69-63.dynamic.dsl.as9105.com (HELO [192.168.6.20]) ([79.75.69.63]) by out1.ip01ir2.opaltelecom.net with ESMTP; 22 Aug 2012 07:39:51 +0100 Message-ID: <50347EBC.2090505@kickstone.com> Date: Wed, 22 Aug 2012 07:39:56 +0100 From: John Lister User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: setObject(...) with native Java arrays like String[] ? References: <50344D58.9010401@ringerc.id.au> In-Reply-To: <50344D58.9010401@ringerc.id.au> Content-Type: multipart/alternative; boundary="------------050109000806060708060807" X-Pg-Spam-Score: -1.2 (-) X-Archive-Number: 201208/58 X-Sequence-Number: 23213 This is a multi-part message in MIME format. --------------050109000806060708060807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 22/08/2012 04:09, Craig Ringer wrote: > > I was recently surprised to find that PgJDBC doesn't accept Java > arrays as parameters to prepared statements. As was I, I posted a patch a couple of months ago that did the same thing but also accepted java List types as well (I'm often using these especially with JPA and it would be nice to pass them into the driver), although it seems to have been silently ignored. Maybe I'll repost it. John --------------050109000806060708060807 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 22/08/2012 04:09, Craig Ringer wrote:

I was recently surprised to find that PgJDBC doesn't accept Java arrays as parameters to prepared statements.
As was I, I posted a patch a couple of months ago that did the same thing but also accepted java List types as well (I'm often using these especially with JPA and it would be nice to pass them into the driver), although it seems to have been silently ignored. Maybe I'll repost it.

John
--------------050109000806060708060807--