Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/FindResponse.cpp @ 5750:f39406a9eda4 find-refactoring
ExtendedFind in SQLite continued (6 tests still failing)
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 03 Sep 2024 09:34:41 +0200 |
parents | 3cee66f96e2e |
children | f75596b224e0 093a8693ba16 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/FindResponse.cpp Mon Sep 02 17:21:38 2024 +0200 +++ b/OrthancServer/Sources/Database/FindResponse.cpp Tue Sep 03 09:34:41 2024 +0200 @@ -160,14 +160,8 @@ void FindResponse::ChildrenInformation::AddIdentifier(const std::string& identifier) { - if (identifiers_.find(identifier) == identifiers_.end()) - { - identifiers_.insert(identifier); - } - else - { - throw OrthancException(ErrorCode_BadSequenceOfCalls); - } + // The same identifier can be added through AddChildIdentifier and through AddOneInstanceIdentifier + identifiers_.insert(identifier); }