comparison Framework/Plugins/IndexBackend.cpp @ 521:2ab3d45c0b3c large-queries

merge default -> large-queries
author Alain Mazy <am@orthanc.team>
date Thu, 04 Jul 2024 07:44:39 +0200
parents 594859656a06 54d518dcd74a
children 25cfcb752af6
comparison
equal deleted inserted replaced
501:594859656a06 521:2ab3d45c0b3c
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium 4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2024 Osimis S.A., Belgium 5 * Copyright (C) 2017-2023 Osimis S.A., Belgium
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium 7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
7 * 8 *
8 * This program is free software: you can redistribute it and/or 9 * This program is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU Affero General Public License 10 * modify it under the terms of the GNU Affero General Public License
10 * as published by the Free Software Foundation, either version 3 of 11 * as published by the Free Software Foundation, either version 3 of
864 865
865 statement.Execute(args); 866 statement.Execute(args);
866 867
867 if (statement.IsDone()) 868 if (statement.IsDone())
868 { 869 {
869 throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource); 870 throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource, "No public id found for internal id");
870 } 871 }
871 else 872 else
872 { 873 {
873 return statement.ReadString(0); 874 return statement.ReadString(0);
874 } 875 }
932 933
933 statement.Execute(args); 934 statement.Execute(args);
934 935
935 if (statement.IsDone()) 936 if (statement.IsDone())
936 { 937 {
937 throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource); 938 throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource, "No resource type found for internal id.");
938 } 939 }
939 else 940 else
940 { 941 {
941 return static_cast<OrthancPluginResourceType>(statement.ReadInteger32(0)); 942 return static_cast<OrthancPluginResourceType>(statement.ReadInteger32(0));
942 } 943 }