aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/healthmarketscience/jackcess/Column.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2009-05-26 03:34:01 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2009-05-26 03:34:01 +0000
commit9ee53ade6d1056a259a7472fa3ba8116f708a7cb (patch)
tree8b3471c11922786ca32a951e4e1e875b6489bc56 /src/java/com/healthmarketscience/jackcess/Column.java
parentfe704cc133fc9b3e78dedeb047bdef85a083978a (diff)
downloadjackcess-9ee53ade6d1056a259a7472fa3ba8116f708a7cb.tar.gz
jackcess-9ee53ade6d1056a259a7472fa3ba8116f708a7cb.zip
add database method to load queries
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@392 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Column.java')
-rw-r--r--src/java/com/healthmarketscience/jackcess/Column.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Column.java b/src/java/com/healthmarketscience/jackcess/Column.java
index 1d45d02..ea5b9c9 100644
--- a/src/java/com/healthmarketscience/jackcess/Column.java
+++ b/src/java/com/healthmarketscience/jackcess/Column.java
@@ -340,8 +340,13 @@ public class Column implements Comparable<Column> {
}
if(!isVariableLength()) {
- if(getLength() < getType().getFixedSize()) {
- throw new IllegalArgumentException("invalid fixed length size");
+ if(getLength() != getType().getFixedSize()) {
+ if(getLength() < getType().getFixedSize()) {
+ throw new IllegalArgumentException("invalid fixed length size");
+ }
+ LOG.warn("Column length " + getLength() +
+ " longer than expected fixed size " +
+ getType().getFixedSize());
}
} else if(!getType().isLongValue()) {
if(!getType().isValidSize(getLength())) {