From fe704cc133fc9b3e78dedeb047bdef85a083978a Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sun, 24 May 2009 03:44:14 +0000 Subject: [PATCH] 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 --- src/changes/changes.xml | 3 +++ src/java/com/healthmarketscience/jackcess/Column.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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()) { -- 2.39.5