]> source.dussan.org Git - jackcess.git/commitdiff
Be more forgiving for input column length. #2788029
authorJames Ahlborn <jtahlborn@yahoo.com>
Sun, 24 May 2009 03:44:14 +0000 (03:44 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Sun, 24 May 2009 03:44:14 +0000 (03:44 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@391 f203690c-595d-4dc9-a70b-905162fa7fd2

src/changes/changes.xml
src/java/com/healthmarketscience/jackcess/Column.java

index fb479cbf1287854c891cab3f8a03b5f3082732c9..934d73d8868ed5f4e2739267d8b2cd6c1347336b 100644 (file)
@@ -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">
index 437250eb505b078edfe64559a9cf472dc86b3904..1d45d027c8dcad624b87619fdd08b5f944372be8 100644 (file)
@@ -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()) {