Mercurial > hg > orthanc
changeset 6193:a7e762b386f1 attach-custom-data
fix handling custom data of deleted files
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Fri, 13 Jun 2025 10:49:40 +0200 |
| parents | 9e1bf1a1af50 |
| children | a9272b0cc439 |
| files | OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp Fri Jun 13 08:04:30 2025 +0200 +++ b/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp Fri Jun 13 10:49:40 2025 +0200 @@ -1399,8 +1399,8 @@ if (s.Step()) { - if (s.ColumnIsNull(C6_STRING_4) || - !s.ColumnBlobAsString(C6_STRING_4, &customData)) + if (s.ColumnIsNull(0) || + !s.ColumnBlobAsString(0, &customData)) { customData.clear(); }
