summaryrefslogtreecommitdiffstats
path: root/src/java/com/healthmarketscience/jackcess
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2008-07-18 01:15:07 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2008-07-18 01:15:07 +0000
commit9541bb51bbd8c1f457d5f0b923e41e0b06afa61a (patch)
treed69e86e5aa634a09431ea6cd1d702c21768a6a6c /src/java/com/healthmarketscience/jackcess
parent48404ab2d688d5fb9af63166e049a0a5c95800cd (diff)
downloadjackcess-9541bb51bbd8c1f457d5f0b923e41e0b06afa61a.tar.gz
jackcess-9541bb51bbd8c1f457d5f0b923e41e0b06afa61a.zip
better account for memo space usage
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@359 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 5007f3d..35c9e72 100644
--- a/src/java/com/healthmarketscience/jackcess/Table.java
+++ b/src/java/com/healthmarketscience/jackcess/Table.java
@@ -1397,6 +1397,11 @@ public class Table
ByteBuffer varDataBuf = varCol.write(rowValue, maxRowSize);
maxRowSize -= varDataBuf.remaining();
+ if(varCol.getType().isLongValue()) {
+ // we already accounted for some amount of the long value data
+ // above. add that space back so we don't double count
+ maxRowSize += getFormat().SIZE_LONG_VALUE_DEF;
+ }
buffer.put(varDataBuf);
}