cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agsoftware.dnsalias.com>
Subject Change to AbstractEsqlQuery.java
Date Thu, 26 Dec 2002 07:28:08 GMT
Hi. I am review the code of the ESQL and a have a little change to the code:

In the source file AbstractEsqlQuery.java the original at line 207:

    public void getResultRows() throws SQLException {
        if (skipRows > 0) {
            while (resultSet.next()) {
                position++;
                if (position >= skipRows) {
                    break;
                }
            }
        }
    }

to:

    public void getResultRows() throws SQLException {
        if (skipRows > 0) {
            resultSet.absolute(skipRows + 1);
            position += skipRows;
        }
    }

I think this second function must run faster than the old one.


Antonio Gallardo




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message