RESOLVED BATCH-737: JdbcCursorItemReader will spin through entire resultset if numberOfProcessRows=0
This commit is contained in:
@@ -259,11 +259,8 @@ public class JdbcCursorItemReader<T> extends AbstractBufferedItemReaderItemStrea
|
||||
private void moveCursorToRow(int row) {
|
||||
try {
|
||||
int count = 0;
|
||||
while (rs.next()) {
|
||||
while (row!=count && rs.next()) {
|
||||
count++;
|
||||
if (count == row) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (SQLException se) {
|
||||
|
||||
Reference in New Issue
Block a user