comparison Odbc/Plugins/StoragePlugin.cpp @ 331:674bbb9d1c83

added OdbcEnvironment::GlobalInitialization()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 11 Aug 2021 07:28:53 +0200
parents b5fb8b77ce4d
children 16aac0287485
comparison
equal deleted inserted replaced
330:8f17f23c9af7 331:674bbb9d1c83
146 LOG(WARNING) << "The ODBC storage area is currently disabled, set \"EnableStorage\" " 146 LOG(WARNING) << "The ODBC storage area is currently disabled, set \"EnableStorage\" "
147 << "to \"true\" in the \"" << KEY_ODBC << "\" section of the configuration file of Orthanc"; 147 << "to \"true\" in the \"" << KEY_ODBC << "\" section of the configuration file of Orthanc";
148 return 0; 148 return 0;
149 } 149 }
150 150
151 OrthancDatabases::OdbcEnvironment::GlobalInitialization();
152
151 try 153 try
152 { 154 {
153 const std::string connectionString = odbc.GetStringValue("StorageConnectionString", ""); 155 const std::string connectionString = odbc.GetStringValue("StorageConnectionString", "");
154 const unsigned int maxConnectionRetries = odbc.GetUnsignedIntegerValue("MaxConnectionRetries", 10); 156 const unsigned int maxConnectionRetries = odbc.GetUnsignedIntegerValue("MaxConnectionRetries", 10);
155 const unsigned int connectionRetryInterval = odbc.GetUnsignedIntegerValue("ConnectionRetryInterval", 5); 157 const unsigned int connectionRetryInterval = odbc.GetUnsignedIntegerValue("ConnectionRetryInterval", 5);