changeset 1173:3b372ab992ec db-changes

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Sep 2014 13:53:21 +0200
parents 059391d3f8df
children 6fa65ccf312d
files OrthancServer/DatabaseWrapper.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp	Mon Sep 22 13:44:08 2014 +0200
+++ b/OrthancServer/DatabaseWrapper.cpp	Mon Sep 22 13:53:21 2014 +0200
@@ -560,12 +560,12 @@
     {
       if (flattened.GetElement(i).GetTag().IsIdentifier())
       {
-        SQLite::Statement s(db_, SQLITE_FROM_HERE, "INSERT INTO MainDicomTags VALUES(?, ?, ?, ?)");
+        SQLite::Statement s(db_, SQLITE_FROM_HERE, "INSERT INTO DicomIdentifiers VALUES(?, ?, ?, ?)");
         SetMainDicomTagsInternal(s, id, flattened.GetElement(i));
       }
       else
       {
-        SQLite::Statement s(db_, SQLITE_FROM_HERE, "INSERT INTO DicomIdentifier VALUES(?, ?, ?, ?)");
+        SQLite::Statement s(db_, SQLITE_FROM_HERE, "INSERT INTO MainDicomTags VALUES(?, ?, ?, ?)");
         SetMainDicomTagsInternal(s, id, flattened.GetElement(i));
       }
     }