Re: PSQLException: ResultSet not positioned properly - Mailing list pgsql-jdbc

From james@dades.ca
Subject Re: PSQLException: ResultSet not positioned properly
Date
Msg-id 48801.72.35.6.133.1203087819.squirrel@squirrel.dades.ca
Whole thread Raw
In response to PSQLException: ResultSet not positioned properly  (james@dades.ca)
List pgsql-jdbc
Oliver Jowett wrote:
> james@dades.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

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: PSQLException: ResultSet not positioned properly
Next
From: Adriano Migani
Date:
Subject: (assunto em branco)