diff Framework/Plugins/DatabaseBackendAdapterV3.cpp @ 536:4ecf50a4521c find-refactoring

sync ISqlLookupFormatter from Orthanc + fix bug 224: LIMIT shall not be used with MSSQL
author Alain Mazy <am@orthanc.team>
date Fri, 06 Sep 2024 16:56:37 +0200
parents 54d518dcd74a
children 1a23f1ce3b98
line wrap: on
line diff
--- a/Framework/Plugins/DatabaseBackendAdapterV3.cpp	Fri Sep 06 15:44:40 2024 +0200
+++ b/Framework/Plugins/DatabaseBackendAdapterV3.cpp	Fri Sep 06 16:56:37 2024 +0200
@@ -1640,12 +1640,11 @@
     {
       t->GetOutput().Clear();
 
-      std::vector<Orthanc::DatabaseConstraint> lookup;
-      lookup.reserve(constraintsCount);
+      Orthanc::DatabaseConstraints lookup;
 
       for (uint32_t i = 0; i < constraintsCount; i++)
       {
-        lookup.push_back(Orthanc::DatabaseConstraint(constraints[i]));
+        lookup.AddConstraint(new Orthanc::DatabaseConstraint(constraints[i]));
       }
         
       std::set<std::string> noLabel;