diff OrthancServer/DatabaseWrapperBase.cpp @ 1729:54d78925cbb6 db-changes

notes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Oct 2015 17:39:58 +0200
parents 4941494b5dd8
children 38dda23c7d7d
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapperBase.cpp	Tue Oct 20 15:03:52 2015 +0200
+++ b/OrthancServer/DatabaseWrapperBase.cpp	Tue Oct 20 17:39:58 2015 +0200
@@ -677,8 +677,8 @@
            (level == ResourceType_Instance && tag == DICOM_TAG_SOP_INSTANCE_UID));
     
     SQLite::Statement s(db_, SQLITE_FROM_HERE, 
-                        "SELECT d.id FROM DicomIdentifiers as d, Resources as r WHERE "
-                        "d.id = r.internalId AND r.resourceType=? AND d.tagGroup=? AND d.tagElement=? and d.value=?");
+                        "SELECT d.id FROM DicomIdentifiers AS d, Resources AS r WHERE "
+                        "d.id = r.internalId AND r.resourceType=? AND d.tagGroup=? AND d.tagElement=? AND d.value=?");
 
     s.BindInt(0, level);
     s.BindInt(1, tag.GetGroup());
@@ -692,4 +692,13 @@
       target.push_back(s.ColumnInt64(0));
     }
   }
+
+
+  void DatabaseWrapperBase::LookupIdentifierWildcard(std::list<int64_t>& target,
+                                                     const DicomTag& tag,
+                                                     const std::string& value)
+  {
+    // TODO
+    throw OrthancException(ErrorCode_NotImplemented);
+  }
 }