IDEMPIERE-3810 New IDs display type (AD_Reference) created via 2pack are created as String

This commit is contained in:
Carlos Ruiz 2018-11-07 17:44:23 -02:00
parent faac96eb39
commit 30311f6b0a
1 changed files with 3 additions and 0 deletions

View File

@ -655,6 +655,9 @@ public final class DisplayType
if (!DisplayType.isText(displayType)) if (!DisplayType.isText(displayType))
s_log.severe("Unhandled Data Type = " + displayType); s_log.severe("Unhandled Data Type = " + displayType);
if (columnName.endsWith("_ID"))
return "NUMBER(10)";
return "VARCHAR2(" + fieldLength + ")"; return "VARCHAR2(" + fieldLength + ")";
} // getSQLDataType } // getSQLDataType