<author email="jahlborn@users.sf.net">James Ahlborn</author>
</properties>
<body>
+ <release version="1.1.17" date="TBD">
+ <action dev="jahlborn" type="fix" issue="2043499">
+ Fix simple index handling of tail index pages.
+ </action>
+ </release>
<release version="1.1.16" date="2008-07-24">
<action dev="jahlborn" type="fix" issue="2019244">
Reserve minimum space for memo/ole fields so that greedy inline row
setReadOnly();
// found another node page
- nextPageNumber = indexPage.getEntries().get(0).getSubPageNumber();
+ if(!indexPage.getEntries().isEmpty()) {
+ nextPageNumber = indexPage.getEntries().get(0).getSubPageNumber();
+ } else {
+ // try tail page
+ nextPageNumber = indexPage.getChildTailPageNumber();
+ }
indexPage = null;
} else {
// found first leaf
private boolean _leaf;
private int _nextPageNumber;
private int _totalEntrySize;
+ private int _childTailPageNumber;
private List<Entry> _entries;
private SimpleDataPage(int pageNumber) {
_nextPageNumber = pageNumber;
}
@Override
- public int getChildTailPageNumber() { return 0; }
+ public int getChildTailPageNumber() {
+ return _childTailPageNumber;
+ }
@Override
public void setChildTailPageNumber(int pageNumber) {
- // ignored
+ _childTailPageNumber = pageNumber;
}
@Override