# HG changeset patch # User Sebastien Jodogne # Date 1626108309 -7200 # Node ID d192bfd0e752f0cc125f541ebe61aeeacb658ad8 # Parent 6a668f5d10698cbfc0b7bca1a9b482f557b131b1 tagging globalParameters_ as static in MySQL diff -r 6a668f5d1069 -r d192bfd0e752 Framework/Plugins/IndexUnitTests.h --- a/Framework/Plugins/IndexUnitTests.h Mon Jul 12 17:22:53 2021 +0200 +++ b/Framework/Plugins/IndexUnitTests.h Mon Jul 12 18:45:09 2021 +0200 @@ -44,6 +44,8 @@ # define HAS_REVISIONS 0 #elif ORTHANC_ENABLE_SQLITE == 1 # define HAS_REVISIONS 1 +#elif ORTHANC_ENABLE_ODBC == 1 +# define HAS_REVISIONS 1 #else # error Unknown database backend #endif @@ -210,6 +212,8 @@ db.SetClearAll(true); #elif ORTHANC_ENABLE_SQLITE == 1 SQLiteIndex db(&context); // Open in memory +#elif ORTHANC_ENABLE_ODBC == 1 + OdbcIndex db(&context, connectionString_); #else # error Unsupported database backend #endif diff -r 6a668f5d1069 -r d192bfd0e752 MySQL/UnitTests/UnitTestsMain.cpp --- a/MySQL/UnitTests/UnitTestsMain.cpp Mon Jul 12 17:22:53 2021 +0200 +++ b/MySQL/UnitTests/UnitTestsMain.cpp Mon Jul 12 18:45:09 2021 +0200 @@ -22,7 +22,7 @@ #include "../Plugins/MySQLIndex.h" #include "../Plugins/MySQLStorageArea.h" -OrthancDatabases::MySQLParameters globalParameters_; +static OrthancDatabases::MySQLParameters globalParameters_; #include "../../Framework/Common/Integer64Value.h" #include "../../Framework/MySQL/MySQLDatabase.h"