diff options
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Index.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Index.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index 97315d6..5300fe6 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -357,7 +357,7 @@ public abstract class Index implements Comparable<Index> { _rootPageNumber = tableBuffer.getInt(); tableBuffer.getInt(); //Forward past Unknown _indexFlags = tableBuffer.get(); - tableBuffer.position(tableBuffer.position() + 5); //Forward past other stuff + ByteUtil.forward(tableBuffer, 5); //Forward past other stuff } /** @@ -942,11 +942,13 @@ public abstract class Index implements Comparable<Index> { ByteArrayOutputStream bout = new ByteArrayOutputStream(); - // annoyingly, the values array could come from different sources, one - // of which will make it a different size than the other. we need to - // handle both situations. for(ColumnDescriptor col : _columns) { Object value = values[col.getColumnIndex()]; + if(Column.isRawData(value)) { + // ignore it, we could not parse it + continue; + } + col.writeValue(value, bout); } |