ResultSet is FORWARD_ONLY.

From: S Arvind <arvindwill(at)gmail(dot)com>
To: pgsql-jdbc-owner(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: ResultSet is FORWARD_ONLY.
Date: 2009-06-16 07:35:33
Message-ID: abf9211d0906160035j64e2a6ees5e06f3e3ecdc118e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi everyone,
Recently we have upgraded postgres driver jdbc4 for 8.3. After that
while executing rst.first(), it raise the exception.
The statment was created correctly as
dbconnection..createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);

org.postgresql.util.PSQLException: Operation requires a scrollable
ResultSet, but this ResultSet is FORWARD_ONLY.
at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkScrollable(AbstractJdbc2ResultSet.java:207)
at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.first(AbstractJdbc2ResultSet.java:292)
at
org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.first(DelegatingResultSet.java:326)

This statment worked in postgres 8.1 jdbc 3 driver but now its not.. Pleas
help is solving this...

-Arvind S

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michelle Konzack 2009-06-16 08:20:16 Re: 10 TB database
Previous Message Albe Laurenz 2009-06-16 07:20:19 Re: How can I interpolate psql variables in function bodies?