From 867f9375cdb37dbded3792f5cfe83357ee13f4c5 Mon Sep 17 00:00:00 2001 From: Dmitriy Nikiforov Date: Wed, 10 Aug 2016 16:25:30 +0300 Subject: [PATCH] SRADA-952, SRADA-954: Fixed data saving in PageDataManagers Added closing and reestablishing connection to database before and after actual saving in filesystem. This is needed to ensure that all queries are executed before saving. Change-Id: If3ab44163d5f34bb2a812caac57fcbc8c693ee7b (cherry picked from commit 3c32339605f08b29996a1e26c53f1f864caa787c) --- .../src/org/tizen/dynamicanalyzer/handlers/CommandAction.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/CommandAction.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/CommandAction.java index bf54b20..3ac06b2 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/CommandAction.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/CommandAction.java @@ -99,6 +99,8 @@ public class CommandAction { project.save(); DataManagerRegistry.saveData(); + SqlConnectionManager.closeConnection(); + File sourceFolder = new File(sourcePath); if (!sourceFolder.isDirectory()) { return false; @@ -111,6 +113,8 @@ public class CommandAction { return false; } + SqlConnectionManager.establishConnection(sourcePath); + return true; } -- 2.7.4