summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/changes/changes.xml3
-rw-r--r--src/java/com/healthmarketscience/jackcess/Column.java2
2 files changed, 4 insertions, 1 deletions
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 @@
<action dev="jahlborn" type="add">
Add Query reading support.
</action>
+ <action dev="jahlborn" type="fix" issue="2788029">
+ Be more forgiving for input column length.
+ </action>
</release>
<release version="1.1.18" date="2008-11-08">
<action dev="jahlborn" type="add">
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<Column> {
}
if(!isVariableLength()) {
- if(getLength() != getType().getFixedSize()) {
+ if(getLength() < getType().getFixedSize()) {
throw new IllegalArgumentException("invalid fixed length size");
}
} else if(!getType().isLongValue()) {