/ spring-batch Public
JdbcPagingItemReader [BATCH-2465] #1137
Legacy label from JIRA. Superseded by "for: backport-to-x.x.x"
cm opened BATCH-2465 and commented
if sortKeys is't unique key, the query sql(remainingPagesSql)---'select a,b,c from table where c>? limit 2' can lose data,for example:
a b c
1 2 1
2 2 2
3 3 2
4 5 3
the third row will lose.
remainingPagesSql --- 'select a,b,c from table limit pageSize*(pageNo-1),pageSize' and the last querySql --- 'select a,b,c from table limit pageSize*(pageNo-1),the sum of the table - pageSize*pageNo' is OK?
Referenced from: pull request #568, and commits 9bd7c1b, 54f3a5c
Backported to: 3.0.9
The text was updated successfully, but these errors were encountered: