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 9277153586 for ; Wed, 23 Mar 2005 20:13:10 +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 08420-10 for ; Wed, 23 Mar 2005 20:13:07 +0000 (GMT) Received: from mail.liquidcore.com (mail.liquidcore.net [68.17.96.60]) by svr1.postgresql.org (Postfix) with ESMTP id 7BEDA5359F for ; Wed, 23 Mar 2005 20:13:06 +0000 (GMT) Received: (from root@localhost) by mail.liquidcore.com (8.13.1/8.12.10) id j2NKDJkm026069; Wed, 23 Mar 2005 14:13:19 -0600 Received: from [192.168.0.81] (ppasalalinux.nqadmin.com [192.168.0.81]) by mail.liquidcore.com (8.13.1/8.12.10) with ESMTP id j2NKDIhk026039; Wed, 23 Mar 2005 14:13:18 -0600 Message-ID: <4241CE03.7020300@nqadmin.com> Date: Wed, 23 Mar 2005 14:13:55 -0600 From: Prasanth Reply-To: dbadmin@nqadmin.com User-Agent: Mozilla Thunderbird 0.9 (X11/20041127) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: moveToCurrentRow causes ArrayIndexOutOfBoundsException References: <4241C1EC.8090906@nqadmin.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-scanner: scanned for malicious content X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.051 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/183 X-Sequence-Number: 12575 > Your stacktrace shows you are using the 8.0 driver. Sorry about that had two jars in my class path. The other one was postgresql-8.0.309.jdbc3.jar > 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. If I am using 8.0 jar then wasn't the fix there? Any how I tried with the new jar you have provided and seems its working now. Thank you very much for your help. -Prasanth. Kris Jurka wrote: > > 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 > >