[ 2002892 ] Error in 2 Pack when try save the history

http://sourceforge.net/tracker/index.php?func=detail&aid=2002892&group_id=176962&atid=879332
This commit is contained in:
vpj-cd 2008-06-26 03:46:21 +00:00
parent a7f3b48f7f
commit 8814b541ee
2 changed files with 6 additions and 6 deletions

View File

@ -276,8 +276,8 @@ public abstract class AbstractElementHandler implements ElementHandler {
.append( ", " + idDetail )
.append( ", " + getPackageImpId(ctx) )
.append( ", " + tableID )
.append( ", " + columnID )
.append( ", " + referenceID )
.append( ", " + (columnID == -1 ? "null" : columnID) )
.append( ", " + (referenceID == -1 ? "null" : referenceID) )
.append( ", '" + (colValue != null ? colValue : from.get_Value(i)) )
.append( "')");

View File

@ -189,8 +189,8 @@ public class MenuElementHandler extends AbstractElementHandler {
int columnID = DB.getSQLValue(getTrxName(ctx), sql
.toString(), tableID);
sql = new StringBuffer(
"SELECT AD_Reference_ID FROM AD_COLUMN WHERE AD_Column_ID = '"
+ columnID + "'");
"SELECT AD_Reference_ID FROM AD_COLUMN WHERE AD_Column_ID = "
+ (columnID == -1 ? "null" : columnID));
int referenceID = DB.getSQLValue(getTrxName(ctx), sql
.toString());
int idBackup = MSequence.getNextID(Env
@ -226,9 +226,9 @@ public class MenuElementHandler extends AbstractElementHandler {
+ ", "
+ tableID
+ ", "
+ columnID
+ (columnID == -1 ? "null" : columnID)
+ ", "
+ referenceID
+ (referenceID == -1 ? "null" : referenceID)
+ ", '" + colValue + "')");
int no = DB.executeUpdate(sqlD.toString(),
getTrxName(ctx));