From: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
To: Ludovico Bianchini <metlud@yahoo.it>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ResultSet with more than 5 rows causes error
Date: Thu, 27 Sep 2007 19:44:05 +0200
Message-ID: <1190915045.18730.45.camel@scarafaggio> (raw)
In-Reply-To: <00ea01c80125$cc3d0d30$4101a8c0@MRHYDE>
References: <520533.88896.qm@web31903.mail.mud.yahoo.com>
<1190910427.18730.35.camel@scarafaggio>
<00ea01c80125$cc3d0d30$4101a8c0@MRHYDE>
Il giorno gio, 27/09/2007 alle 18.45 +0200, Ludovico Bianchini ha
scritto:
[...]
> The stored procedure returns an integer parameter, which must be registered
> with
>
> insertCall.registerOutParameter(1, Types.INTEGER);
>
> In a first attempt I wrote
>
> insertCall.setObject(i,data);
>
> but an error happened: the last parameter was not set. So: if there is a
> return value, the arguments index starts from 2.
I think OUT parameters are not related to the setObject(...) calls.
These parameters are for the resultset associated the execute(...)
method.
Try again as you did earlier, it should work. If it doesn't, then please
post that error message.
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: giuseppe@eppesuigoccas.homedns.org, metlud@yahoo.it
Subject: Re: ResultSet with more than 5 rows causes error
In-Reply-To: <1190915045.18730.45.camel@scarafaggio>
References: <520533.88896.qm@web31903.mail.mud.yahoo.com> <1190910427.18730.35.camel@scarafaggio> <00ea01c80125$cc3d0d30$4101a8c0@MRHYDE> <1190915045.18730.45.camel@scarafaggio>
* 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