summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2009-05-24 03:44:14 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2009-05-24 03:44:14 +0000
commitfe704cc133fc9b3e78dedeb047bdef85a083978a (patch)
tree57c3a03a74ac97e10e24f5774405fec2fe512591
parent8934f9fd42e724ef87e682d66a8f57b812748f48 (diff)
downloadjackcess-fe704cc133fc9b3e78dedeb047bdef85a083978a.tar.gz
jackcess-fe704cc133fc9b3e78dedeb047bdef85a083978a.zip
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
-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()) {