]> source.dussan.org Git - jackcess.git/commitdiff
Account for character sizes when copying column lengths, fixes #158
authorJames Ahlborn <jtahlborn@yahoo.com>
Wed, 8 May 2024 03:14:05 +0000 (03:14 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Wed, 8 May 2024 03:14:05 +0000 (03:14 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1408 f203690c-595d-4dc9-a70b-905162fa7fd2

src/changes/changes.xml
src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java

index 7f19bd4b2a7c4af2f94ee15d7fa8b1d861d475bb..775eab6b2dc00d0902a528cbacfa26a5d13c3678 100644 (file)
@@ -9,6 +9,9 @@
         Make NumberFormatter locale aware, using the currently configured
         LocaleContext.
       </action>
+      <action dev="jahlborn" type="fix" system="SourceForge2" issue="158">
+        Account for character sizes when copying column lengths.
+      </action>
     </release>
     <release version="4.0.5" date="2023-01-26">
       <action dev="jahlborn" type="add" system="SourceForge2Features"
index 9253d0677cc5b9c47fa438cf9f1aaa53afdbb956..44bb6abe98313a80d078f4cb9abf2475593a29ad 100644 (file)
@@ -304,7 +304,7 @@ public class ColumnBuilder {
   {
     DataType type = template.getType();
     setType(type);
-    setLength(template.getLength());
+    setLengthInUnits(template.getLengthInUnits());
     setAutoNumber(template.isAutoNumber());
     if(type.getHasScalePrecision()) {
       setScale(template.getScale());