Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6C6599F9DE0 for ; Thu, 27 Sep 2007 14:43:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 42078-02 for ; Thu, 27 Sep 2007 14:43:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from eppesuigoccas.homedns.org (host231-168-dynamic.6-79-r.retail.telecomitalia.it [79.6.168.231]) by postgresql.org (Postfix) with ESMTP id 3F1369FA056 for ; Thu, 27 Sep 2007 14:43:31 -0300 (ADT) Received: from [192.168.2.51] by eppesuigoccas.homedns.org with esmtpsa (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.63) (envelope-from ) id 1IaxOU-0001kw-G1; Thu, 27 Sep 2007 19:43:24 +0200 Subject: Re: ResultSet with more than 5 rows causes error From: Giuseppe Sacco To: Ludovico Bianchini Cc: pgsql-jdbc@postgresql.org 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> Content-Type: text/plain Date: Thu, 27 Sep 2007 19:44:05 +0200 Message-Id: <1190915045.18730.45.camel@scarafaggio> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.006 tagged_above=0 required=5 tests=BAYES_50=0.001, RCVD_IN_PBL=0.905, RDNS_DYNAMIC=0.1 X-Spam-Level: * X-Archive-Number: 200709/124 X-Sequence-Number: 17546 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.