diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2009-11-17 03:39:11 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2009-11-17 03:39:11 +0000 |
commit | c190f7216c07da257eebad77d587ee7a21654899 (patch) | |
tree | 3fb7857a233336cc27150b56581b6478b296fbcc /src/java/com/healthmarketscience/jackcess/Table.java | |
parent | efca0b593bc32e274b0923b87ecba989ca0406b4 (diff) | |
download | jackcess-c190f7216c07da257eebad77d587ee7a21654899.tar.gz jackcess-c190f7216c07da257eebad77d587ee7a21654899.zip |
support reading/writing fixed length text columns (fixe #2886370)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@411 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Table.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Table.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index a358406..f17fd30 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -486,7 +486,7 @@ public class Table // read fixed length value (non-boolean at this point) int dataStart = rowStart + 2; colDataPos = dataStart + column.getFixedDataOffset(); - colDataLen = column.getType().getFixedSize(); + colDataLen = column.getType().getFixedSize(column.getLength()); } else { @@ -882,8 +882,7 @@ public class Table buffer.putShort((short) 0); } else { buffer.putShort(fixedOffset); - fixedOffset += Math.max(col.getType().getFixedSize(), - col.getLength()); + fixedOffset += col.getType().getFixedSize(col.getLength()); } if(!col.getType().isLongValue()) { buffer.putShort(col.getLength()); //Column length |