提交 4acb6b03 编写于 作者: L lancea

7040150: Indexing Error in CachedRowSetImpl.removeCurrentRow

Reviewed-by: smarks
上级 8ff675ea
......@@ -1666,7 +1666,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
*/
protected void removeCurrentRow() {
((Row)getCurrentRow()).setDeleted();
rvh.remove(cursorPos);
rvh.remove(cursorPos - 1);
--numRows;
}
......@@ -6349,7 +6349,6 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
// this can happen if deleted rows are being shown
if (row.getDeleted() == true) {
removeCurrentRow();
--numRows;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册