IDEMPIERE-1044 Load testing / avoid trxname > 60 chars (i.e. saving C_BPartner_Location)

This commit is contained in:
Carlos Ruiz 2013-06-12 00:10:02 -05:00
parent 4752ee32b3
commit ac241a5db2
1 changed files with 5 additions and 1 deletions

View File

@ -2003,7 +2003,11 @@ public abstract class PO
Savepoint savepoint = null;
if (m_trxName == null)
{
m_trxName = Trx.createTrxName(LOCAL_TRX_PREFIX + get_TableName());
StringBuilder l_trxname = new StringBuilder(LOCAL_TRX_PREFIX)
.append(get_TableName());
if (l_trxname.length() > 23)
l_trxname.setLength(23);
m_trxName = Trx.createTrxName(l_trxname.toString());
localTrx = Trx.get(m_trxName, true);
}
else