changeset 133:b1d7d255fb73

back to mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 01 Mar 2019 12:56:13 +0100
parents 90692f9c33e0 (current diff) 5c69c2a14c97 (diff)
children cc3dc759c989
files PostgreSQL/CMakeLists.txt
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/GlobalProperties.cpp	Fri Mar 01 11:21:42 2019 +0100
+++ b/Framework/Plugins/GlobalProperties.cpp	Fri Mar 01 12:56:13 2019 +0100
@@ -115,6 +115,12 @@
                          Orthanc::GlobalProperty property,
                          const std::string& utf8)
   {
+    // This version of "SetGlobalProperty()" (with an explicit
+    // transaction) is called internally by the plugin to set a global
+    // property during the initialization of the database. (TODO:
+    // Could be replaced by the version with an implicit transaction
+    // to avoid code redundancy).
+    
     if (db.GetDialect() == Dialect_SQLite)
     {
       Query query("INSERT OR REPLACE INTO GlobalProperties VALUES (${property}, ${value})", false);
@@ -164,6 +170,11 @@
                          Orthanc::GlobalProperty property,
                          const std::string& utf8)
   {
+    // This version of "SetGlobalProperty()" (without an explicit
+    // transaction) is called by Orthanc during its execution. Orthanc
+    // manages the transaction at a higher level, but this transaction
+    // is always present.
+
     if (manager.GetDialect() == Dialect_SQLite)
     {
       DatabaseManager::CachedStatement statement(
--- a/PostgreSQL/NEWS	Fri Mar 01 11:21:42 2019 +0100
+++ b/PostgreSQL/NEWS	Fri Mar 01 12:56:13 2019 +0100
@@ -1,6 +1,10 @@
 Pending changes in the mainline
 ===============================
 
+
+Release 3.2 (2019-03-01)
+========================
+
 * Explicit deallocation of prepared statements