Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp @ 5805:8a8756b2dd0b find-refactoring tip
cleanup
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 23 Sep 2024 16:03:02 +0200 |
parents | 25df40a274fd |
children |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp Mon Sep 23 15:40:27 2024 +0200 +++ b/OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp Mon Sep 23 16:03:02 2024 +0200 @@ -1276,7 +1276,6 @@ std::vector<std::string> filters; bool hasSince = false; bool hasTo = false; - // bool hasFilterType = false; if (since > 0) { @@ -1290,7 +1289,6 @@ } if (filterType.size() != 0) { - // hasFilterType = true; filters.push_back("changeType IN ( " + JoinChanges(filterType) + " )"); } @@ -1327,10 +1325,7 @@ { s.BindInt64(paramCounter++, to); } - // if (hasFilterType) - // { - // s.BindInt(paramCounter++, filterType); - // } + s.BindInt(paramCounter++, limit + 1); // we take limit+1 because we use the +1 to know if "Done" must be set to true GetChangesInternal(target, done, s, limit, returnFirstResults); }