X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 84713D83EF for ; Thu, 22 Sep 2005 22:35:03 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85434-06 for ; Fri, 23 Sep 2005 01:34:56 +0000 (GMT) Received: from calvin.slamb.org (calvin.slamb.org [216.136.66.56]) by svr1.postgresql.org (Postfix) with ESMTP id 1B1AFD8341 for ; Thu, 22 Sep 2005 22:34:55 -0300 (ADT) Received: by calvin.slamb.org (Postfix, from userid 103) id 3A68C6FCE5; Thu, 22 Sep 2005 20:34:59 -0500 (CDT) Received: from [192.168.0.111] (12-217-226-2.client.mchsi.com [12.217.226.2]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by calvin.slamb.org (Postfix) with ESMTP id 8951E6FCBC for ; Thu, 22 Sep 2005 20:34:58 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v734) To: pgsql-jdbc@postgresql.org Message-Id: <7EAC0D28-F7CC-4924-8244-CF8AD2874314@visualdistortion.org> Content-Type: multipart/alternative; boundary=Apple-Mail-1-955725515 From: Jeffrey Melloy Subject: Result Set FORWARD_ONLY Date: Thu, 22 Sep 2005 20:34:57 -0500 X-Mailer: Apple Mail (2.734) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 required=5 tests=[AWL=0.003, HTML_MESSAGE=0.001] X-Spam-Level: X-Archive-Number: 200509/100 X-Sequence-Number: 13885 --Apple-Mail-1-955725515 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 --Apple-Mail-1-955725515 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=US-ASCII I'm having trouble setting the = result set to anything but FORWARD_ONLY.

If I do this:

pstmt =3D = conn.prepareStatement("select name, name from amz.product_detail_items = order by name");
rs =3D = 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.

Jeff
= --Apple-Mail-1-955725515--