BATCH-1590: tidy up oracle paging

This commit is contained in:
dsyer
2010-07-09 10:50:08 +00:00
parent 07922086f9
commit c918e770f0
8 changed files with 66 additions and 34 deletions

View File

@@ -122,7 +122,7 @@ public class JdbcPagingQueryIntegrationTests {
List<Map<String, Object>> list = jdbcTemplate.queryForList(query);
logger.debug("Jump to page result: " + list);
assertEquals(1, list.size());
String expected = "[{sort_key=" + (minId + pageSize - 1);
String expected = "[{value=" + (minId + pageSize - 1);
assertEquals(expected, list.toString().toLowerCase().substring(0, expected.length()));
Object startAfterValue = list.get(0).entrySet().iterator().next().getValue();
list = jdbcTemplate.queryForList(queryProvider.generateRemainingPagesQuery(pageSize), startAfterValue);