From a8ae554a25a838fda4c80c0c222ea5c50462bcf8 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Fri, 29 Feb 2008 19:26:10 +0000 Subject: [PATCH] skip unhandled index bytes for now 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index 20c3605..8e8e088 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -1026,6 +1026,10 @@ public class Index implements Comparable { } 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); -- 2.39.5