[ 1852532 ] 2pack should ignore field length checking for lob column

This commit is contained in:
Heng Sin Low 2007-12-17 17:12:53 +00:00
parent e23c51352e
commit 84de4e9352
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,7 @@ import org.compiere.model.MTable;
import org.compiere.model.X_AD_Column;
import org.compiere.model.X_AD_Element;
import org.compiere.util.DB;
import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.Trx;
import org.xml.sax.Attributes;
@ -193,6 +194,13 @@ public class ColumnElementHandler extends AbstractElementHandler {
|| m_Column.is_ValueChanged("FieldLength")
|| m_Column.is_ValueChanged("ColumnName") || m_Column
.is_ValueChanged("IsMandatory"));
//ignore fieldlength change for clob and lob
if (!m_Column.is_ValueChanged("AD_Reference_ID") && m_Column.is_ValueChanged("FieldLength")) {
if (DisplayType.isLOB(m_Column.getAD_Reference_ID())) {
recreateColumn = false;
}
}
// changed default ??
// m_Column.is_ValueChanged("DefaultValue") doesn't work well with