diff OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp @ 5772:093a8693ba16 find-refactoring

replaced SetRetrieveOneInstanceIdentifier() by SetRetrieveOneInstanceMetadataAndAttachments()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 11 Sep 2024 20:49:34 +0200
parents d52b3f394f69
children f96abfe08946
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp	Wed Sep 11 16:31:11 2024 +0200
+++ b/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp	Wed Sep 11 20:49:34 2024 +0200
@@ -588,9 +588,12 @@
         }
       }
 
-      // need one instance identifier ?  TODO: it might be actually more interesting to retrieve directly the attachment ids ....
-      if (request.IsRetrieveOneInstanceIdentifier())
+      if (request.IsRetrieveOneInstanceMetadataAndAttachments())
       {
+        throw OrthancException(ErrorCode_NotImplemented);
+
+#if 0
+        // need one instance identifier ?  TODO: it might be actually more interesting to retrieve directly the attachment ids ....
         if (requestLevel == ResourceType_Series)
         {
           sql = "SELECT Lookup.internalId, childLevel.publicId "
@@ -637,6 +640,7 @@
         {
           throw OrthancException(ErrorCode_InternalError);
         }
+#endif
       }
 
       // need children metadata ?