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)
|
if (m_connection == null)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (isActive())
|
try {
|
||||||
commit();
|
if (isActive() && !m_connection.isReadOnly())
|
||||||
|
commit();
|
||||||
|
} catch (SQLException e) {
|
||||||
|
}
|
||||||
|
|
||||||
// Close Connection
|
// Close Connection
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue