Thread

  1. absolute(int rownumber) method not implemented as per Sun guidlines

    PostgreSQL Bugs List <pgsql-bugs@postgresql.org> — 2001-03-08T18:22:00Z

    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.
    As per Sun JDK specs ,if i will call rs.absolute(1) then it should move cursor to row 1.
    
    If somebody is writting application for multiple RDBMS ,then this kind of variation from specification may lead to more coding time & frustation.
    
    Sample Code
    
    
    No file was uploaded with this report
    
    
    
  2. Re: absolute(int rownumber) method not implemented as per Sun guidlines

    Peter T Mount <peter@retep.org.uk> — 2001-03-12T16:07:08Z

    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