comparison OrthancServer/Database/SQLiteDatabaseWrapper.cpp @ 3121:f86ebf971a72 db-changes

fix unit tests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 14 Jan 2019 16:23:08 +0100
parents 0fa7181ac4e5
children c0d7aee8c3f8
comparison
equal deleted inserted replaced
3120:a323b75e5b08 3121:f86ebf971a72
328 db_.OpenInMemory(); 328 db_.OpenInMemory();
329 } 329 }
330 330
331 331
332 int SQLiteDatabaseWrapper::GetGlobalIntegerProperty(GlobalProperty property, 332 int SQLiteDatabaseWrapper::GetGlobalIntegerProperty(GlobalProperty property,
333 unsigned int defaultValue) 333 int defaultValue)
334 { 334 {
335 std::string tmp; 335 std::string tmp;
336 336
337 if (!LookupGlobalProperty(tmp, GlobalProperty_DatabasePatchLevel)) 337 if (!LookupGlobalProperty(tmp, GlobalProperty_DatabasePatchLevel))
338 { 338 {
415 std::string query; 415 std::string query;
416 EmbeddedResources::GetFileResource(query, EmbeddedResources::INSTALL_TRACK_ATTACHMENTS_SIZE); 416 EmbeddedResources::GetFileResource(query, EmbeddedResources::INSTALL_TRACK_ATTACHMENTS_SIZE);
417 db_.Execute(query); 417 db_.Execute(query);
418 } 418 }
419 } 419 }
420
421 /*if (GetGlobalIntegerProperty(GlobalProperty_DatabasePatchLevel, 0) <= 0)
422 {
423 SetGlobalProperty(GlobalProperty_DatabasePatchLevel, "1");
424 }*/
425 420
426 t.Commit(); 421 t.Commit();
427 } 422 }
428 423
429 signalRemainingAncestor_ = new Internals::SignalRemainingAncestor; 424 signalRemainingAncestor_ = new Internals::SignalRemainingAncestor;
1324 { 1319 {
1325 // No change has been recorded so far in the database 1320 // No change has been recorded so far in the database
1326 return 0; 1321 return 0;
1327 } 1322 }
1328 } 1323 }
1324
1325
1326 void SQLiteDatabaseWrapper::TagAsMostRecentPatient(int64_t patient)
1327 {
1328 // TODO
1329 }
1329 } 1330 }