X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E3ED25357E for ; Wed, 23 Mar 2005 20:01:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05983-07 for ; Wed, 23 Mar 2005 20:01:02 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id AF6C653578 for ; Wed, 23 Mar 2005 20:00:58 +0000 (GMT) Received: (qmail 17915 invoked by uid 1112); 23 Mar 2005 20:00:58 -0000 Date: Wed, 23 Mar 2005 15:00:58 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Prasanth Cc: pgsql-jdbc@postgresql.org Subject: Re: moveToCurrentRow causes ArrayIndexOutOfBoundsException In-Reply-To: <4241C1EC.8090906@nqadmin.com> Message-ID: References: <4241C1EC.8090906@nqadmin.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/182 X-Sequence-Number: 12574 On Wed, 23 Mar 2005, Prasanth wrote: > Below is a small sample code that I tried out and the results are a little > surprising to me. Is this expected behavior? No, that's a bug. moveToCurrentRow was not correctly handling the case where the current row is off the end of the ResultSet. I've fixed it in 8.0 and 8.1dev. > I am using jdk1.5.0 with pg74.215.jdbc3.jar and PostgreSQL 7.4.7 Your stacktrace shows you are using the 8.0 driver. I've put up new versions of the 8.0 jar files here: http://www.ejurka.com/pgsql/jars/prasanth Kris Jurka