Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A1AD89FA1A9 for ; Mon, 15 Oct 2007 05:08:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 53880-06 for ; Mon, 15 Oct 2007 05:07:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id CE6C79FA154 for ; Mon, 15 Oct 2007 05:07:50 -0300 (ADT) Received: (qmail 20984 invoked by uid 1112); 15 Oct 2007 08:07:48 -0000 Date: Mon, 15 Oct 2007 04:07:48 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Ludovico Bianchini cc: pgsql-jdbc@postgresql.org Subject: Re: ResultSet with more than 5 rows causes error In-Reply-To: Message-ID: References: <008901c8011f$8c815800$4101a8c0@MRHYDE> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/79 X-Sequence-Number: 17651 On Mon, 1 Oct 2007, Kris Jurka wrote: > I've managed to reproduce this problem with the attached test case. > At fault are the ill conceived side effects in > org.postgresql.core.v3.SimpleParameterList#getTypeOID. An accessor > like getTypeOID shouldn't be responsible for setting a value for the > out parameter. getTypeOID is called from QueryExecutorImpl's > sendParse method, which obviously isn't called when we reuse a server > side prepared statement and don't need to reparse. This leaves an > uninitialized value in the paramValues array which we die on later. > I've applied a fix for this in CVS to 8.1, 8.2 and 8.3dev and it will be included in the next release. Kris Jurka