Bug [ 1705182 ] ORA-00972: identifier is too long
This commit is contained in:
parent
d39a430d65
commit
71465255d4
|
@ -426,7 +426,7 @@ public class MColumn extends X_AD_Column
|
||||||
public String getConstraint(String tableName)
|
public String getConstraint(String tableName)
|
||||||
{
|
{
|
||||||
if (isKey())
|
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
|
if (getAD_Reference_ID() == DisplayType.TableDir
|
||||||
|| getAD_Reference_ID() == DisplayType.Search)
|
|| getAD_Reference_ID() == DisplayType.Search)
|
||||||
|
|
Loading…
Reference in New Issue