IDEMPIERE-5262 Implement readonly protection for DB.getSQLValueEx call (#1323)
- Avoid unnecessary commit call.
This commit is contained in:
parent
9bc016dc3d
commit
4488537565
|
@ -483,8 +483,11 @@ public class Trx
|
|||
if (m_connection == null)
|
||||
return true;
|
||||
|
||||
if (isActive())
|
||||
commit();
|
||||
try {
|
||||
if (isActive() && !m_connection.isReadOnly())
|
||||
commit();
|
||||
} catch (SQLException e) {
|
||||
}
|
||||
|
||||
// Close Connection
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue