pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: J. <sweepingoar@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: arrays as parameters in callableStatements
Date: Sun, 14 May 2006 23:10:42 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0605142309040.11653@leary2.csoft.net> (raw)
In-Reply-To: <20060515025606.79891.qmail@web54215.mail.yahoo.com>
References: <20060515025606.79891.qmail@web54215.mail.yahoo.com>



On Sun, 14 May 2006, J. wrote:

> I've got a PL/pgSQL stored function in my database and I'm trying to 
> figure out how to call it from my admin script.  Some of the parameters 
> are ArrayList objects of strings and it returns an array that I want to 
> read to determine what the function actually did.  Here is the function 
> header(?):
>
>              String[] results = stmt.getArray(1);
>
>  I'm getting a compiler error "Incompatible Types" on the second to last 
> line.

getArray returns a java.sql.Array, not a String[].  Also the JDBC driver 
does not know how to interpret array parameters that are not sent in via 
setArray or setObject with a java.sql.Array.

Kris Jurka




view thread (4+ messages)  latest in thread

Message-ID: <Pine.BSO.4.63.0605142309040.11653@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.63.0605142309040.11653@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0605142309040.11653@leary2.csoft.net

 · 

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: books@ejurka.com, sweepingoar@yahoo.com
  Subject: Re: arrays as parameters in callableStatements
  In-Reply-To: <Pine.BSO.4.63.0605142309040.11653@leary2.csoft.net>
  References: <20060515025606.79891.qmail@web54215.mail.yahoo.com> <Pine.BSO.4.63.0605142309040.11653@leary2.csoft.net>

* 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