From 98e48307a5a619ee124ad3a8ec423790e7d5eedf Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Tue, 8 May 2007 16:52:14 +0000 Subject: [PATCH] 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 --- src/java/com/healthmarketscience/jackcess/Column.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { 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"); } -- 2.39.5