From 3cb217bb604ac28e62f228833579e38d87b4bd30 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 7 Dec 2009 09:37:04 +0000 Subject: [PATCH] https://sourceforge.net/tracker/?func=detail&aid=2909911&group_id=176962&atid=879332 - invalid or close trx name to DB.prepareStatement will create orphan transaction in system --- base/src/org/compiere/db/PreparedStatementProxy.java | 2 +- base/src/org/compiere/db/StatementProxy.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/db/PreparedStatementProxy.java b/base/src/org/compiere/db/PreparedStatementProxy.java index fd68950896..b744aa912c 100644 --- a/base/src/org/compiere/db/PreparedStatementProxy.java +++ b/base/src/org/compiere/db/PreparedStatementProxy.java @@ -56,7 +56,7 @@ public class PreparedStatementProxy extends StatementProxy { try { Connection conn = null; Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo - .getTrxName(), true); + .getTrxName(), false); if (trx != null) { conn = trx.getConnection(); } else { diff --git a/base/src/org/compiere/db/StatementProxy.java b/base/src/org/compiere/db/StatementProxy.java index e2ff4c3902..936babe1b5 100644 --- a/base/src/org/compiere/db/StatementProxy.java +++ b/base/src/org/compiere/db/StatementProxy.java @@ -113,7 +113,7 @@ public class StatementProxy implements InvocationHandler { try { Connection conn = null; - Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo.getTrxName(), true); + Trx trx = p_vo.getTrxName() == null ? null : Trx.get(p_vo.getTrxName(), false); if (trx != null) { conn = trx.getConnection();