Skip site navigation (1) Skip section navigation (2)

Re: unusual behaviour

From: "emergency(dot)shower(at)gmail(dot)com" <emergency(dot)shower(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: unusual behaviour
Date: 2005-07-28 12:56:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
On 7/27/05, Les Carter <carterl(at)newkinetics(dot)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(! throw SomeException();
>     }
> 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?


In response to

pgsql-jdbc by date

Next:From: Dave CramerDate: 2005-07-28 14:00:46
Subject: Proposed patch for showing originating query on error
Previous:From: Oliver JowettDate: 2005-07-28 10:14:17
Subject: Re: Problems storing timestamps with calendars

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group