minor, use new API.

This commit is contained in:
Heng Sin Low 2009-02-23 18:14:18 +00:00
parent d5556b951b
commit 3d55c83dd0
1 changed files with 2 additions and 2 deletions

View File

@ -355,9 +355,9 @@ public class MAttributeSetInstance extends X_M_AttributeSetInstance
{
this.set_ValueNoCheck("Description", Integer.toString(getM_AttributeSetInstance_ID()));
String sql = "UPDATE M_AttributeSetInstance SET Description = ? WHERE M_AttributeSetInstance_ID = ?";
int no = DB.executeUpdate(sql,
int no = DB.executeUpdateEx(sql,
new Object[]{Integer.toString(getM_AttributeSetInstance_ID()), getM_AttributeSetInstance_ID()},
false, get_TrxName());
get_TrxName());
if (no <= 0)
{
log.log(Level.SEVERE, "Failed to update description.");