comparison Framework/Plugins/IndexUnitTests.h @ 319:baaa265d84f4

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Jul 2021 08:14:24 +0200
parents 11641063ddb2
children eb0b04c10bc4
comparison
equal deleted inserted replaced
318:4a4087a79b9b 319:baaa265d84f4
208 PostgreSQLIndex db(&context, globalParameters_); 208 PostgreSQLIndex db(&context, globalParameters_);
209 db.SetClearAll(true); 209 db.SetClearAll(true);
210 #elif ORTHANC_ENABLE_MYSQL == 1 210 #elif ORTHANC_ENABLE_MYSQL == 1
211 MySQLIndex db(&context, globalParameters_); 211 MySQLIndex db(&context, globalParameters_);
212 db.SetClearAll(true); 212 db.SetClearAll(true);
213 #elif ORTHANC_ENABLE_SQLITE == 1
214 SQLiteIndex db(&context); // Open in memory
215 #elif ORTHANC_ENABLE_ODBC == 1 213 #elif ORTHANC_ENABLE_ODBC == 1
216 OdbcIndex db(&context, connectionString_); 214 OdbcIndex db(&context, connectionString_);
215 #elif ORTHANC_ENABLE_SQLITE == 1 // Must be the last one
216 SQLiteIndex db(&context); // Open in memory
217 #else 217 #else
218 # error Unsupported database backend 218 # error Unsupported database backend
219 #endif 219 #endif
220 220
221 db.SetOutputFactory(new DatabaseBackendAdapterV2::Factory(&context, NULL)); 221 db.SetOutputFactory(new DatabaseBackendAdapterV2::Factory(&context, NULL));