From 220c7b858022c36bda527696f57d52e005c3a1c1 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 1 Feb 2008 18:13:02 +0000 Subject: [PATCH] Fix again [ 1686341 ] List Datatype bug --- base/src/org/compiere/util/DisplayType.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/util/DisplayType.java b/base/src/org/compiere/util/DisplayType.java index 073e73f4b7..8eb822eb28 100644 --- a/base/src/org/compiere/util/DisplayType.java +++ b/base/src/org/compiere/util/DisplayType.java @@ -419,8 +419,12 @@ public final class DisplayType return "CLOB"; if (displayType == DisplayType.YesNo) return "CHAR(1)"; - if (displayType == DisplayType.List) - return "CHAR(" + fieldLength + ")"; + if (displayType == DisplayType.List) { + if (fieldLength == 1) + return "CHAR(" + fieldLength + ")"; + else + return "NVARCHAR2(" + fieldLength + ")"; + } if (displayType == DisplayType.Color) { if (columnName.endsWith("_ID"))