From d2d443500a3889448a1dc6be9a03dcabbe541da7 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 23 Oct 2007 22:12:22 +0000 Subject: [PATCH] * minor - setSavepoint should auto allocate connection. --- base/src/org/compiere/util/Trx.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/src/org/compiere/util/Trx.java b/base/src/org/compiere/util/Trx.java index d7fb153a00..b1a2132f3a 100644 --- a/base/src/org/compiere/util/Trx.java +++ b/base/src/org/compiere/util/Trx.java @@ -562,6 +562,9 @@ public class Trx implements VetoableChangeListener return setRemoteSavepoint(name); } + if (m_connection == null) + getConnection(); + if(m_connection != null) { return m_connection.setSavepoint(name); } else {