]> source.dussan.org Git - jackcess.git/commitdiff
fill in offsets for trailing deleted var len columns
authorJames Ahlborn <jtahlborn@yahoo.com>
Tue, 8 May 2007 13:33:14 +0000 (13:33 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Tue, 8 May 2007 13:33:14 +0000 (13:33 +0000)
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

index be801b029d62eae48ca31aaca1e987d800896c88..edde1df1e2e2d6645fc7c4733f751abda49b2f6a 100644 (file)
@@ -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