Re: PSQLException: ResultSet not positioned properly

From: james(at)dades(dot)ca
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PSQLException: ResultSet not positioned properly
Date: 2008-02-15 15:03:39
Message-ID: 48801.72.35.6.133.1203087819.squirrel@squirrel.dades.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Oliver Jowett wrote:
> james(at)dades(dot)ca wrote:
>
>> System.out.println("Error: ticket number not
>> found
>> in bol: so#="+sonumber+" ticket#="+token+";
>> navroutno="+pRs.getString(2));
>
> You probably don't meant to use pRs.getString() here. That's the
> resultset that you already iterated through completely in the previous
> loop (and the connection it was generated from is closed, anyway)

Thank you, Oliver. That was indeed my problem.

James

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Adriano Migani 2008-02-16 02:09:39 (assunto em branco)
Previous Message Oliver Jowett 2008-02-15 01:52:29 Re: PSQLException: ResultSet not positioned properly