Re: PSQLException: ResultSet not positioned properly

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: james(at)dades(dot)ca
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PSQLException: ResultSet not positioned properly
Date: 2008-02-15 01:52:29
Message-ID: 47B4F05D.5040805@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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)

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message james 2008-02-15 15:03:39 Re: PSQLException: ResultSet not positioned properly
Previous Message james 2008-02-14 23:36:19 PSQLException: ResultSet not positioned properly