From 1890ff2fe09f1e29f7a971374aa361be09a3ec91 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Tue, 8 May 2007 13:33:14 +0000 Subject: [PATCH] fill in offsets for trailing deleted var len columns git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@144 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/Table.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index be801b0..edde1df 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -896,6 +896,11 @@ public class Table } } + // fill in offsets for any remaining deleted columns + while(varColumnOffsetsIndex < varColumnOffsets.length) { + varColumnOffsets[varColumnOffsetsIndex++] = (short) buffer.position(); + } + buffer.putShort((short) buffer.position()); //EOD marker //Now write out variable length offsets //Offsets are stored in reverse order -- 2.39.5