summaryrefslogtreecommitdiffstats
path: root/src/java/com/healthmarketscience/jackcess
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2007-05-08 13:33:14 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2007-05-08 13:33:14 +0000
commit1890ff2fe09f1e29f7a971374aa361be09a3ec91 (patch)
tree150f9d4172ff95202e36cd6133a783d5d3324265 /src/java/com/healthmarketscience/jackcess
parented6ff8410bf61859e2569905c2326e5b7270f1cd (diff)
downloadjackcess-1890ff2fe09f1e29f7a971374aa361be09a3ec91.tar.gz
jackcess-1890ff2fe09f1e29f7a971374aa361be09a3ec91.zip
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
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess')
-rw-r--r--src/java/com/healthmarketscience/jackcess/Table.java5
1 files changed, 5 insertions, 0 deletions
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