Re: absolute(int rownumber) method not implemented as per Sun guidlines - Mailing list pgsql-bugs

From Peter Mount
Subject Re: absolute(int rownumber) method not implemented as per Sun guidlines
Date
Msg-id 5.0.2.1.0.20010312160529.0215f950@mail.retep.org.uk
Whole thread Raw
In response to absolute(int rownumber) method not implemented as per Sun guidlines  (pgsql-bugs@postgresql.org)
List pgsql-bugs
At 13:22 08/03/01 -0500, pgsql-bugs@postgresql.org wrote:
>Rahul Tyagi (rahul@envivio.com) reports a bug with a severity of 2
>The lower the number the more severe it is.
>
>Short Description
>absolute(int rownumber) method not implemented as per Sun guidlines
>
>Long Description
>absolute(int rownumber) method of ResultSet interface (in postgresql.jar)
>is not defined as per the Sun JDK1.3 definition.
>
>As per postgresql.jar rownumber are zero indexed means if i will call
>rs.absolute(0) then it will move cursor to row 1.

Nope, it throws an SQLException with the text "Cannot move to index of 0".

>As per Sun JDK specs ,if i will call rs.absolute(1) then it should move
>cursor to row 1.

It currently moves to row 1 (internal row 0).

What version of the driver are you using?

Peter

pgsql-bugs by date:

Previous
From: Reinhard Max
Date:
Subject: Re: PG 7.0.3SuSE7-1: /usr/include/pgsql/os.h points to nowhere
Next
From: Peter Mount
Date:
Subject: Re: createStatement(int,int) of interface Statement not implemented