]> source.dussan.org Git - jackcess.git/commitdiff
skip unhandled index bytes for now
authorJames Ahlborn <jtahlborn@yahoo.com>
Fri, 29 Feb 2008 19:26:10 +0000 (19:26 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Fri, 29 Feb 2008 19:26:10 +0000 (19:26 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@242 f203690c-595d-4dc9-a70b-905162fa7fd2

src/java/com/healthmarketscience/jackcess/Index.java

index 20c36052d4ee2812e11e0ce4886fa3db407c1adb..8e8e0883da5b4623659b504d3e6ca943722cac80 100644 (file)
@@ -1026,6 +1026,10 @@ public class Index implements Comparable<Index> {
         }
         colEntryLen -= curEntryLen;
       }
+      if(colEntryLen > 0) {
+        LOG.warn("Unhandled index bytes " + colEntryLen);
+        buffer.position(buffer.position() + colEntryLen);
+      }
       int page = ByteUtil.get3ByteInt(buffer, ByteOrder.BIG_ENDIAN);
       int row = buffer.get();
       _rowId = new RowId(page, row);