Mercurial > hg > orthanc
comparison OrthancServer/DatabaseWrapper.cpp @ 701:f9052558eada
fix attachment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Feb 2014 14:30:56 +0100 |
parents | 2929e17f8447 |
children | 696dbb4fd390 |
comparison
equal
deleted
inserted
replaced
700:0fe6632864b9 | 701:f9052558eada |
---|---|
461 | 461 |
462 | 462 |
463 void DatabaseWrapper::DeleteAttachment(int64_t id, | 463 void DatabaseWrapper::DeleteAttachment(int64_t id, |
464 FileContentType attachment) | 464 FileContentType attachment) |
465 { | 465 { |
466 SQLite::Statement s(db_, SQLITE_FROM_HERE, "DELETE FROM Resources WHERE internalId=?"); | 466 SQLite::Statement s(db_, SQLITE_FROM_HERE, "DELETE FROM AttachedFiles WHERE id=? AND fileType=?"); |
467 s.BindInt64(0, id); | 467 s.BindInt64(0, id); |
468 s.BindInt(1, attachment); | 468 s.BindInt(1, attachment); |
469 s.Run(); | 469 s.Run(); |
470 } | 470 } |
471 | 471 |