[ 1909210 ] Current a parameter in process support value minor of 60

http://sourceforge.net/tracker/index.php?func=detail&aid=1909210&group_id=176962&atid=879335
This commit is contained in:
vpj-cd 2008-03-07 01:25:29 +00:00
parent 5916c3a3e3
commit dcb35dab6f
3 changed files with 66 additions and 6 deletions

View File

@ -238,10 +238,10 @@ public class X_AD_PInstance_Para extends PO implements I_AD_PInstance_Para, I_Pe
public void setP_String (String P_String) public void setP_String (String P_String)
{ {
if (P_String != null && P_String.length() > 60) if (P_String != null && P_String.length() > 255)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 255 - truncated");
P_String = P_String.substring(0, 60); P_String = P_String.substring(0, 255);
} }
set_Value (COLUMNNAME_P_String, P_String); set_Value (COLUMNNAME_P_String, P_String);
} }
@ -261,10 +261,10 @@ public class X_AD_PInstance_Para extends PO implements I_AD_PInstance_Para, I_Pe
public void setP_String_To (String P_String_To) public void setP_String_To (String P_String_To)
{ {
if (P_String_To != null && P_String_To.length() > 60) if (P_String_To != null && P_String_To.length() > 255)
{ {
log.warning("Length > 60 - truncated"); log.warning("Length > 255 - truncated");
P_String_To = P_String_To.substring(0, 60); P_String_To = P_String_To.substring(0, 255);
} }
set_Value (COLUMNNAME_P_String_To, P_String_To); set_Value (COLUMNNAME_P_String_To, P_String_To);
} }

View File

@ -0,0 +1,30 @@
-- Mar 6, 2008 6:40:40 PM CST
-- Change P_String
UPDATE AD_Column SET FieldLength=255,Updated=TO_DATE('2008-03-06 18:40:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2791
;
-- Mar 6, 2008 6:40:40 PM CST
-- Change P_String
UPDATE AD_Field SET Name='Process String', Description='Process Parameter', Help=NULL WHERE AD_Column_ID=2791 AND IsCentrallyMaintained='Y'
;
-- Mar 6, 2008 6:40:45 PM CST
-- Change P_String
ALTER TABLE AD_PInstance_Para MODIFY P_String NVARCHAR2(255) DEFAULT NULL
;
-- Mar 6, 2008 6:41:54 PM CST
-- Change P_String
UPDATE AD_Column SET FieldLength=255,Updated=TO_DATE('2008-03-06 18:41:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2792
;
-- Mar 6, 2008 6:41:54 PM CST
-- Change P_String
UPDATE AD_Field SET Name='Process String To', Description='Process Parameter', Help=NULL WHERE AD_Column_ID=2792 AND IsCentrallyMaintained='Y'
;
-- Mar 6, 2008 6:41:58 PM CST
-- Change P_String
ALTER TABLE AD_PInstance_Para MODIFY P_String_To NVARCHAR2(255) DEFAULT NULL
;

View File

@ -0,0 +1,30 @@
-- Mar 6, 2008 6:40:40 PM CST
-- Change P_String
UPDATE AD_Column SET FieldLength=255,Updated=TO_TIMESTAMP('2008-03-06 18:40:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2791
;
-- Mar 6, 2008 6:40:40 PM CST
-- Change P_String
UPDATE AD_Field SET Name='Process String', Description='Process Parameter', Help=NULL WHERE AD_Column_ID=2791 AND IsCentrallyMaintained='Y'
;
-- Mar 6, 2008 6:40:45 PM CST
-- Change P_String
insert into t_alter_column values('ad_pinstance_para','P_String','VARCHAR(255)',null,'NULL')
;
-- Mar 6, 2008 6:41:54 PM CST
-- Change P_String
UPDATE AD_Column SET FieldLength=255,Updated=TO_TIMESTAMP('2008-03-06 18:41:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2792
;
-- Mar 6, 2008 6:41:54 PM CST
-- Change P_String
UPDATE AD_Field SET Name='Process String To', Description='Process Parameter', Help=NULL WHERE AD_Column_ID=2792 AND IsCentrallyMaintained='Y'
;
-- Mar 6, 2008 6:41:58 PM CST
-- Change P_String
insert into t_alter_column values('ad_pinstance_para','P_String_To','VARCHAR(255)',null,'NULL')
;