pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeffrey Melloy <jmelloy@visualdistortion.org>
To: pgsql-jdbc@postgresql.org
Subject: Result Set FORWARD_ONLY
Date: Thu, 22 Sep 2005 20:34:57 -0500
Message-ID: <7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org> (raw)

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

view thread (2+ messages)  latest in thread

Message-ID: <7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org>
Permalink:  ../7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org/
Also on:    postgresql.org/message-id/7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jmelloy@visualdistortion.org
  Subject: Re: Result Set FORWARD_ONLY
  In-Reply-To: <7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org>
  References: <7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox