'feeditem' is the id of the FeedItem

SQL statement previously used 'id' which was actually
the id of the FeedMedia item and not the FeedItem
This commit is contained in:
Tom Hennen 2015-08-04 21:09:55 -04:00
parent 86f4d244d8
commit 008347313f
1 changed files with 1 additions and 1 deletions

View File

@ -1711,7 +1711,7 @@ public class PodDBAdapter {
}
if(oldVersion < 1030002) {
db.execSQL("UPDATE FeedItems SET auto_download=0 WHERE " +
"(read=1 OR id IN (SELECT id FROM FeedMedia WHERE position>0 OR downloaded=1)) " +
"(read=1 OR id IN (SELECT feeditem FROM FeedMedia WHERE position>0 OR downloaded=1)) " +
"AND id NOT IN (SELECT feeditem FROM Queue)");
}
EventBus.getDefault().post(ProgressEvent.end());