Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-449
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-449
Summary: ScrollableResults setRowNumber()
Type: Patch
Status: Unassigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.1 beta 5
Assignee:
Reporter: Martin Priekopa
Created: Mon, 3 Nov 2003 8:10 AM
Updated: Mon, 3 Nov 2003 8:10 AM
Description:
I think that implementation of ScrollableResultsImpl method:
public boolean setRowNumber(int rowNumber) throws HibernateException {
if (rowNumber>0) rowNumber--;
try {
return rs.absolute(rowNumber);
}
catch (SQLException sqle) {
throw new JDBCException(sqle);
}
}
should IMHO look like this one:
public boolean setRowNumber(int rowNumber) throws HibernateException {
if (rowNumber>0) rowNumber++;
try {
return rs.absolute(rowNumber);
}
catch (SQLException sqle) {
throw new JDBCException(sqle);
}
}
Or if you want to be java.sql.ResultSet compatible, both setRowNumber and getRowNumber should be wrappers only.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|