diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2014-09-29 22:10:43 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2014-09-29 22:10:43 +0000 |
commit | f17433f2de69b70a89064eb88b543d5e51c61460 (patch) | |
tree | caf515d15e01bd3f4833f76eac2b12d937603b7e /src/main | |
parent | 364584d16a48230e6dadc20d7f90fa910333de85 (diff) | |
download | jackcess-f17433f2de69b70a89064eb88b543d5e51c61460.tar.gz jackcess-f17433f2de69b70a89064eb88b543d5e51c61460.zip |
fix regression where empty memo values are returned as null (issue 110)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@884 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/impl/LongValueColumnImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/LongValueColumnImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/LongValueColumnImpl.java index b648a6a..89accff 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/LongValueColumnImpl.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/LongValueColumnImpl.java @@ -234,9 +234,12 @@ class LongValueColumnImpl extends ColumnImpl throws IOException { byte[] binData = readLongValue(lvalDefinition); - if((binData == null) || (binData.length == 0)) { + if(binData == null) { return null; } + if(binData.length == 0) { + return ""; + } return decodeTextValue(binData); } |