From 71465255d4a0e7ab85021cf81e45238faa3b8a6c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 22 Apr 2007 07:41:13 +0000 Subject: [PATCH] Bug [ 1705182 ] ORA-00972: identifier is too long --- dbPort/src/org/compiere/model/MColumn.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbPort/src/org/compiere/model/MColumn.java b/dbPort/src/org/compiere/model/MColumn.java index 5c7d95b1cf..9837d3c979 100644 --- a/dbPort/src/org/compiere/model/MColumn.java +++ b/dbPort/src/org/compiere/model/MColumn.java @@ -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)