pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: emergency.shower@gmail.com <emergency.shower@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: unusual ResultSet.next() behaviour
Date: Thu, 28 Jul 2005 14:56:21 +0200
Message-ID: <bdf1a098050728055671a8dffa@mail.gmail.com> (raw)
In-Reply-To: <1122440425.20140@workhorse.newkinetics.com>
References: <1122440425.20140@workhorse.newkinetics.com>

On 7/27/05, Les Carter <carterl@newkinetics.com> wrote:
> This is a multi-part message in MIME format. --bound1122440425 Content-Type:
> text/html; charsetiso-8859-1 Content-Transfer-Encoding: quoted-printable
> Consider the following code snippet where rs is a ResultSet object obtained
> from a previous query:
> 
>     for(int count=0; count!=someValue; count++)
>     {
>         if(!rs.next()) throw SomeException();
>     }
>     rs.next();
> 
> Pretty simple, just cycle through someValue number of records and then get
> 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



view thread (4+ messages)

Message-ID: <bdf1a098050728055671a8dffa@mail.gmail.com>
Permalink:  ../bdf1a098050728055671a8dffa@mail.gmail.com/
Also on:    postgresql.org/message-id/bdf1a098050728055671a8dffa@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: emergency.shower@gmail.com
  Subject: Re: unusual ResultSet.next() behaviour
  In-Reply-To: <bdf1a098050728055671a8dffa@mail.gmail.com>
  References: <1122440425.20140@workhorse.newkinetics.com> <bdf1a098050728055671a8dffa@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox