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 93AB552918 for ; Thu, 28 Jul 2005 09:56:25 -0300 (ADT) 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 41610-10 for ; Thu, 28 Jul 2005 12:56:23 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by svr1.postgresql.org (Postfix) with ESMTP id 3816E52904 for ; Thu, 28 Jul 2005 09:56:20 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 71so368139wra for ; Thu, 28 Jul 2005 05:56:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GXw7a2RrmxR+coH3EPC5Hxt13/22fgKslJyoHnFkaQPnMj8SfIdN7vgNWzkOldvDNox3vvZQoADfsWitS8Ns9sIIwz98A6JBl3JMxjFWnk4kXddeLavXJDt/FpdneUlvYCmX+2sNKrRQ0iioACr/5SNZcU2c+Pd2RLtK0HhH5jI= Received: by 10.54.30.23 with SMTP id d23mr793499wrd; Thu, 28 Jul 2005 05:56:21 -0700 (PDT) Received: by 10.54.143.14 with HTTP; Thu, 28 Jul 2005 05:56:21 -0700 (PDT) Message-ID: Date: Thu, 28 Jul 2005 14:56:21 +0200 From: "emergency.shower@gmail.com" Reply-To: "emergency.shower@gmail.com" To: pgsql-jdbc@postgresql.org Subject: Re: unusual ResultSet.next() behaviour In-Reply-To: <1122440425.20140@workhorse.newkinetics.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1122440425.20140@workhorse.newkinetics.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.047 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/393 X-Sequence-Number: 13541 On 7/27/05, Les Carter wrote: > This is a multi-part message in MIME format. --bound1122440425 Content-Ty= pe: > text/html; charsetiso-8859-1 Content-Transfer-Encoding: quoted-printable > Consider the following code snippet where rs is a ResultSet object obtain= ed > from a previous query: >=20 > for(int count=3D0; count!=3DsomeValue; count++) > { > if(!rs.next()) throw SomeException(); > } > rs.next(); >=20 > Pretty simple, just cycle through someValue number of records and then ge= t > the next record after that. I suspect that this isn't the code that actually produces the error. If SomeException() is a constructor, this code wouldn't compile. Could you post a more complete snippet? -Alex