Bug [ 1705182 ] ORA-00972: identifier is too long

This commit is contained in:
Carlos Ruiz 2007-04-22 07:41:13 +00:00
parent d39a430d65
commit 71465255d4
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ public class MColumn extends X_AD_Column
public String getConstraint(String tableName)
{
if (isKey())
return "CONSTRAINT " + tableName + "_Key PRIMARY KEY (" + getColumnName() + ")";
return "CONSTRAINT " + tableName.substring(0, 26) + "_Key PRIMARY KEY (" + getColumnName() + ")";
/**
if (getAD_Reference_ID() == DisplayType.TableDir
|| getAD_Reference_ID() == DisplayType.Search)