[ 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:
parent
a7f3b48f7f
commit
8814b541ee
|
@ -276,8 +276,8 @@ public abstract class AbstractElementHandler implements ElementHandler {
|
||||||
.append( ", " + idDetail )
|
.append( ", " + idDetail )
|
||||||
.append( ", " + getPackageImpId(ctx) )
|
.append( ", " + getPackageImpId(ctx) )
|
||||||
.append( ", " + tableID )
|
.append( ", " + tableID )
|
||||||
.append( ", " + columnID )
|
.append( ", " + (columnID == -1 ? "null" : columnID) )
|
||||||
.append( ", " + referenceID )
|
.append( ", " + (referenceID == -1 ? "null" : referenceID) )
|
||||||
.append( ", '" + (colValue != null ? colValue : from.get_Value(i)) )
|
.append( ", '" + (colValue != null ? colValue : from.get_Value(i)) )
|
||||||
.append( "')");
|
.append( "')");
|
||||||
|
|
||||||
|
|
|
@ -189,8 +189,8 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
int columnID = DB.getSQLValue(getTrxName(ctx), sql
|
int columnID = DB.getSQLValue(getTrxName(ctx), sql
|
||||||
.toString(), tableID);
|
.toString(), tableID);
|
||||||
sql = new StringBuffer(
|
sql = new StringBuffer(
|
||||||
"SELECT AD_Reference_ID FROM AD_COLUMN WHERE AD_Column_ID = '"
|
"SELECT AD_Reference_ID FROM AD_COLUMN WHERE AD_Column_ID = "
|
||||||
+ columnID + "'");
|
+ (columnID == -1 ? "null" : columnID));
|
||||||
int referenceID = DB.getSQLValue(getTrxName(ctx), sql
|
int referenceID = DB.getSQLValue(getTrxName(ctx), sql
|
||||||
.toString());
|
.toString());
|
||||||
int idBackup = MSequence.getNextID(Env
|
int idBackup = MSequence.getNextID(Env
|
||||||
|
@ -226,9 +226,9 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
+ ", "
|
+ ", "
|
||||||
+ tableID
|
+ tableID
|
||||||
+ ", "
|
+ ", "
|
||||||
+ columnID
|
+ (columnID == -1 ? "null" : columnID)
|
||||||
+ ", "
|
+ ", "
|
||||||
+ referenceID
|
+ (referenceID == -1 ? "null" : referenceID)
|
||||||
+ ", '" + colValue + "')");
|
+ ", '" + colValue + "')");
|
||||||
int no = DB.executeUpdate(sqlD.toString(),
|
int no = DB.executeUpdate(sqlD.toString(),
|
||||||
getTrxName(ctx));
|
getTrxName(ctx));
|
||||||
|
|
Loading…
Reference in New Issue