Result Set FORWARD_ONLY - Mailing list pgsql-jdbc

From Jeffrey Melloy
Subject Result Set FORWARD_ONLY
Date
Msg-id 7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org
Whole thread Raw
Responses Re: Result Set FORWARD_ONLY  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
I'm having trouble setting the result set to anything but FORWARD_ONLY.

If I do this:

pstmt = conn.prepareStatement("select name, name from amz.product_detail_items order by name");
rs = pstmt.executeQuery();
rs.setFetchDirection(ResultSet.TYPE_SCROLL_INSENSITIVE);

I get:

org.postgresql.util.PSQLException: Invalid fetch direction constant: 1,004.

I get the same error if I set it on the pstmt object before executing the query.

Using version 311 of the JDBC driver and 8.0.2.

Thanks,
Jeff

pgsql-jdbc by date:

Previous
From: "Peter Cook"
Date:
Subject: Connecting to postgreSQL
Next
From: Oliver Jowett
Date:
Subject: Re: Result Set FORWARD_ONLY