PostgreSQL JDBC drive does not fully support JDK1.3 - Mailing list pgsql-general

From Raymond Chui
Subject PostgreSQL JDBC drive does not fully support JDK1.3
Date
Msg-id 3AC33B8E.816FB703@noaa.gov
Whole thread Raw
List pgsql-general
I am using PostgreSQL JDBC drive jdbc7.0-1.2.jar on Redhat Linux 6.5
with PostgreSQL 7.0.3-2

When I

ResultSet result = statement.executeQuery(sqlStatement);

int fromRow = 10;
int toRow = 20;
// my SQL statement returns few thousand rows to ResultSet
// I only want to display result.next() fromRow to toRow

result.absolute(fromRow)
int rowNumber = result.getRow();
out.println("Current row = " + rowNumber);
// Here is the problem, the result.absolute(int i) never go the row
number i
// It always stay in row 0 !!


while(result.next()) {
    rowNumber = result.getRow();
    if (rowNumber > toRow)
        break;
    // else display rows
    // ......
}



--Raymond


Attachment

pgsql-general by date:

Previous
From: Peter Coppens
Date:
Subject: Postinstall: libxcurses not found
Next
From: Peter Eisentraut
Date:
Subject: Re: database dirs very stange on solaris