Mercurial > hg > orthanc-databases
changeset 132:5c69c2a14c97 OrthancPostgreSQL-3.2
OrthancPostgreSQL-3.2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 01 Mar 2019 12:51:37 +0100 |
parents | 90692f9c33e0 |
children | b1d7d255fb73 2014b59d2ef3 |
files | Framework/Plugins/GlobalProperties.cpp PostgreSQL/CMakeLists.txt PostgreSQL/NEWS |
diffstat | 3 files changed, 16 insertions(+), 1 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:51:37 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/CMakeLists.txt Fri Mar 01 11:21:42 2019 +0100 +++ b/PostgreSQL/CMakeLists.txt Fri Mar 01 12:51:37 2019 +0100 @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.8) project(OrthancPostgreSQL) -set(ORTHANC_PLUGIN_VERSION "mainline") +set(ORTHANC_PLUGIN_VERSION "3.2") set(ORTHANC_OPTIMAL_VERSION_MAJOR 1) set(ORTHANC_OPTIMAL_VERSION_MINOR 5)