details:   https://code.openbravo.com/erp/devel/pi/rev/5756317d93ad
changeset: 34225:5756317d93ad
user:      Gorka Gil <gorka.gil <at> openbravo.com>
date:      Thu Jun 21 18:48:23 2018 +0200
summary:   Related to issue 38801: Backed out changeset 28cc0cfb94b4 - breaks 
the install.source

diffstat:

 src/org/openbravo/dal/core/TriggerHandler.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 0978edafeb6a -r 5756317d93ad 
src/org/openbravo/dal/core/TriggerHandler.java
--- a/src/org/openbravo/dal/core/TriggerHandler.java    Thu Jun 21 16:05:13 
2018 +0000
+++ b/src/org/openbravo/dal/core/TriggerHandler.java    Thu Jun 21 18:48:23 
2018 +0200
@@ -88,8 +88,8 @@
     Check.isNotNull(sessionStatus.get(),
         "Triggers were not disabled in this session, call disable before 
calling this method");
 
-    try (Connection con = OBDal.getInstance().getConnection();
-        PreparedStatement ps = con.prepareStatement(getEnableStatement())) {
+    Connection con = OBDal.getInstance().getConnection();
+    try (PreparedStatement ps = con.prepareStatement(getEnableStatement())) {
       ps.execute();
     } catch (Exception e) {
       throw new OBException("Couldn't enable triggers: ", e);

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to