From: James Ahlborn Date: Sun, 24 May 2009 03:44:14 +0000 (+0000) Subject: Be more forgiving for input column length. #2788029 X-Git-Tag: rel_1_1_19~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe704cc133fc9b3e78dedeb047bdef85a083978a;p=jackcess.git Be more forgiving for input column length. #2788029 git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@391 f203690c-595d-4dc9-a70b-905162fa7fd2 --- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index fb479cb..934d73d 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -9,6 +9,9 @@ Add Query reading support. + + Be more forgiving for input column length. + diff --git a/src/java/com/healthmarketscience/jackcess/Column.java b/src/java/com/healthmarketscience/jackcess/Column.java index 437250e..1d45d02 100644 --- a/src/java/com/healthmarketscience/jackcess/Column.java +++ b/src/java/com/healthmarketscience/jackcess/Column.java @@ -340,7 +340,7 @@ public class Column implements Comparable { } if(!isVariableLength()) { - if(getLength() != getType().getFixedSize()) { + if(getLength() < getType().getFixedSize()) { throw new IllegalArgumentException("invalid fixed length size"); } } else if(!getType().isLongValue()) {