Solve BUG ID 1643175 - Default Value(s) in process para badly defined

This commit is contained in:
Carlos Ruiz 2007-01-24 05:43:15 +00:00
parent e206c7d670
commit 56e680fedf
2 changed files with 18 additions and 6 deletions

View File

@ -0,0 +1,12 @@
ALTER TABLE ad_process_para
MODIFY(defaultvalue NVARCHAR2(2000));
ALTER TABLE ad_process_para
MODIFY(defaultvalue2 NVARCHAR2(2000));
UPDATE ad_column
SET updated = TO_DATE ('01/24/2007 00:40:17', 'MM/DD/YYYY HH24:MI:SS'),
fieldlength = 2000
WHERE ad_column_id IN (3739, 5593);
COMMIT;

View File

@ -217,10 +217,10 @@ return (String)get_Value("ColumnName");
*/
public void setDefaultValue (String DefaultValue)
{
if (DefaultValue != null && DefaultValue.length() > 255)
if (DefaultValue != null && DefaultValue.length() > 2000)
{
log.warning("Length > 255 - truncated");
DefaultValue = DefaultValue.substring(0,254);
log.warning("Length > 2000 - truncated");
DefaultValue = DefaultValue.substring(0,1999);
}
set_Value ("DefaultValue", DefaultValue);
}
@ -236,10 +236,10 @@ return (String)get_Value("DefaultValue");
*/
public void setDefaultValue2 (String DefaultValue2)
{
if (DefaultValue2 != null && DefaultValue2.length() > 255)
if (DefaultValue2 != null && DefaultValue2.length() > 2000)
{
log.warning("Length > 255 - truncated");
DefaultValue2 = DefaultValue2.substring(0,254);
log.warning("Length > 2000 - truncated");
DefaultValue2 = DefaultValue2.substring(0,1999);
}
set_Value ("DefaultValue2", DefaultValue2);
}