Mercurial > hg > orthanc
diff OrthancServer/DatabaseWrapper.cpp @ 233:c11273198cef
rename
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 14:30:05 +0100 |
parents | 5368bbe813cf |
children | 16a4ac70bd8a |
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp Fri Nov 30 14:22:27 2012 +0100 +++ b/OrthancServer/DatabaseWrapper.cpp Fri Nov 30 14:30:05 2012 +0100 @@ -381,7 +381,7 @@ { SQLite::Statement s(db_, SQLITE_FROM_HERE, "INSERT INTO AttachedFiles VALUES(?, ?, ?, ?, ?, ?)"); s.BindInt(0, id); - s.BindInt(1, attachment.GetFileType()); + s.BindInt(1, attachment.GetContentType()); s.BindString(2, attachment.GetUuid()); s.BindInt(3, attachment.GetCompressedSize()); s.BindInt(4, attachment.GetUncompressedSize()); @@ -391,7 +391,7 @@ bool DatabaseWrapper::LookupAttachment(FileInfo& attachment, int64_t id, - FileType contentType) + FileContentType contentType) { SQLite::Statement s(db_, SQLITE_FROM_HERE, "SELECT uuid, uncompressedSize, compressionType, compressedSize FROM AttachedFiles WHERE id=? AND fileType=?");