summaryrefslogtreecommitdiffstats
path: root/src/java/com/healthmarketscience/jackcess/Column.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2007-05-08 16:52:14 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2007-05-08 16:52:14 +0000
commit98e48307a5a619ee124ad3a8ec423790e7d5eedf (patch)
tree67e5212a76f192943e91b9868dec0d1ab27eee20 /src/java/com/healthmarketscience/jackcess/Column.java
parentc21b6dc939d63bf86dbd393b8e2a719971b34590 (diff)
downloadjackcess-98e48307a5a619ee124ad3a8ec423790e7d5eedf.tar.gz
jackcess-98e48307a5a619ee124ad3a8ec423790e7d5eedf.zip
do not use hard coded unit size
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@146 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Column.java')
-rw-r--r--src/java/com/healthmarketscience/jackcess/Column.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Column.java b/src/java/com/healthmarketscience/jackcess/Column.java
index 29dcb73..c455575 100644
--- a/src/java/com/healthmarketscience/jackcess/Column.java
+++ b/src/java/com/healthmarketscience/jackcess/Column.java
@@ -837,7 +837,7 @@ public class Column implements Comparable<Column> {
case TEXT:
CharSequence text = toCharSequence(obj);
- int maxChars = getLength() / 2;
+ int maxChars = getLengthInUnits();
if (text.length() > maxChars) {
throw new IOException("Text is too big for column");
}