]> source.dussan.org Git - jackcess.git/commitdiff
do not use hard coded unit size
authorJames Ahlborn <jtahlborn@yahoo.com>
Tue, 8 May 2007 16:52:14 +0000 (16:52 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Tue, 8 May 2007 16:52:14 +0000 (16:52 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@146 f203690c-595d-4dc9-a70b-905162fa7fd2

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

index 29dcb734a56b80f93bd5b3fbd648866384ffeeaa..c4555753931d4530fb112060e1dd997dc1c93f7a 100644 (file)
@@ -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");
         }