diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-08-04 21:09:55 -0400 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-08-04 21:09:55 -0400 |
commit | 008347313f0481e2096b70e2d494055d9e9ebb66 (patch) | |
tree | 7114625a1ddbb1c8ee885da65cd6807643923afe | |
parent | 86f4d244d8b4bd2658ce04c4b8aef51dd277256a (diff) | |
download | AntennaPod-008347313f0481e2096b70e2d494055d9e9ebb66.zip |
'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
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java index f9ac39349..904a416df 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java @@ -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()); |