[DB] Explicitly clear the selected rows in filters when updating a parent filter

This commit is contained in:
epoupon
2015-10-16 19:04:50 +02:00
parent 0d967f035a
commit d6a1b0303c
3 changed files with 7 additions and 3 deletions
+2 -3
View File
@@ -46,8 +46,6 @@ SqlQuery generatePartialQuery(SearchFilter& filter)
for (auto nameLikeMatch : nameLikeMatches)
{
// Artist
switch (nameLikeMatch.first)
{
case SearchFilter::Field::Artist:
@@ -75,7 +73,8 @@ SqlQuery generatePartialQuery(SearchFilter& filter)
}
// Process id exact match parameters
// Id list may be long, we do not bind the parameters
// Safe since we already known these are just ints
for (auto idMatch : filter.idMatch)
{
WhereClause idWhereClause;