diff Framework/Plugins/IndexBackend.cpp @ 398:8dedfd982b83 db-protobuf

implemented lookup for labels in postgresql
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Apr 2023 19:09:51 +0200
parents 7b3acfa95bd8
children 19bd3ee1f0b3
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp	Thu Apr 06 19:07:19 2023 +0200
+++ b/Framework/Plugins/IndexBackend.cpp	Thu Apr 06 19:09:51 2023 +0200
@@ -2070,17 +2070,12 @@
                                      uint32_t limit,
                                      bool requestSomeInstance)
   {
-    if (!withLabels.empty() ||
-        !withoutLabels.empty())
-    {
-      throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
-    }
-
     LookupFormatter formatter(manager.GetDialect());
 
     std::string sql;
-    Orthanc::ISqlLookupFormatter::Apply(sql, formatter, lookup,
-                                        Orthanc::Plugins::Convert(queryLevel), limit);
+    Orthanc::ISqlLookupFormatter::Apply(
+      sql, formatter, lookup, Orthanc::Plugins::Convert(queryLevel),
+      withLabels, withoutLabels, limit);
 
     if (requestSomeInstance)
     {