X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0AADD9FB39B for ; Mon, 21 Aug 2006 05:23:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 03664-02 for ; Mon, 21 Aug 2006 05:22:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from rekin22.go2.pl (rekin22.go2.pl [193.17.41.11]) by postgresql.org (Postfix) with ESMTP id C04519FB43D for ; Mon, 21 Aug 2006 05:06:56 -0300 (ADT) Received: from o2.pl (unknown [10.0.0.17]) by rekin22.go2.pl (Postfix) with SMTP id C88F545C09B for ; Mon, 21 Aug 2006 10:06:54 +0200 (CEST) Subject: =?UTF-8?Q?I=20can't=20retrieve=20a=20scrollable=20ResultSet=20fr?= =?UTF-8?Q?om=20CallableStatement?= From: =?UTF-8?Q?student23?= To: pgsql-jdbc@postgresql.org Mime-Version: 1.0 Message-ID: <1bb1c4b7.3cc5f391.44e9699e.c7fbf@o2.pl> Date: Mon, 21 Aug 2006 10:06:54 +0200 X-Originator: 217.74.68.2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.43 tagged_above=0 required=5 tests=DNS_FROM_RFC_POST, FROM_EXCESS_QP, SPF_PASS, SUBJECT_ENCODED_TWICE, SUBJECT_EXCESS_QP X-Spam-Level: *** X-Archive-Number: 200608/89 X-Sequence-Number: 15616 Hi, I'm=20using=20posgresql=207.4=20and=20I'm=20trying=20to=20receive=20a=20s= crollable=20and=20updatable=20ResulSet=20with=20jdbc.=20But=20when=20I=20= when=20I=20check=20the=20type=20of=20the=20ResultSet=20I've=20retrieved=20= its=20always=20FORWARD=5FONLY.=20I=20use=20jdbc3=20driver. the=20code: =20=20=20=20=20=20=20CallableStatement=20call=20=3D=20con.prepareCall("{=20= ?=20=3D=20call=20getRefcursor=20()=20}",=20ResultSet.TYPE=5FSCROLL=5FINSE= NSITIVE,=20ResultSet.CONCUR=5FUPDATABLE); =20=20=20=20=20=20=20=20call.registerOutParameter(1,=20Types.OTHER); =20=20=20=20=20=20=20=20call.execute(); =20=20=20=20=20=20=20=20ResultSet=20rs=20=3D=20(ResultSet)=20call.getObje= ct(1); =20=20=20=20=20=20=20=20rs.last();=20=20=20//this=20line=20throws=20the=20= Exception =20 What=20do=20I=20need=20to=20do,=20to=20make=20it=20work!