Fix again [ 1686341 ] List Datatype bug

This commit is contained in:
Carlos Ruiz 2008-02-01 18:13:02 +00:00
parent 72632c33df
commit 220c7b8580
1 changed files with 6 additions and 2 deletions

View File

@ -419,8 +419,12 @@ public final class DisplayType
return "CLOB"; return "CLOB";
if (displayType == DisplayType.YesNo) if (displayType == DisplayType.YesNo)
return "CHAR(1)"; return "CHAR(1)";
if (displayType == DisplayType.List) if (displayType == DisplayType.List) {
return "CHAR(" + fieldLength + ")"; if (fieldLength == 1)
return "CHAR(" + fieldLength + ")";
else
return "NVARCHAR2(" + fieldLength + ")";
}
if (displayType == DisplayType.Color) if (displayType == DisplayType.Color)
{ {
if (columnName.endsWith("_ID")) if (columnName.endsWith("_ID"))