Merge pull request #2310 from dklimkin/datareader
Some cleanup on DBReader:
This commit is contained in:
commit
6a30dd611a
File diff suppressed because it is too large
Load Diff
|
@ -1156,7 +1156,9 @@ public class PodDBAdapter {
|
||||||
+ TABLE_NAME_FEED_IMAGES + " WHERE " + KEY_ID + " IN "
|
+ TABLE_NAME_FEED_IMAGES + " WHERE " + KEY_ID + " IN "
|
||||||
+ buildInOperator(neededLength), parts);
|
+ buildInOperator(neededLength), parts);
|
||||||
}
|
}
|
||||||
return new MergeCursor(cursors);
|
Cursor result = new MergeCursor(cursors);
|
||||||
|
result.moveToFirst();
|
||||||
|
return result;
|
||||||
} else {
|
} else {
|
||||||
return db.query(TABLE_NAME_FEED_IMAGES, null, KEY_ID + " IN "
|
return db.query(TABLE_NAME_FEED_IMAGES, null, KEY_ID + " IN "
|
||||||
+ buildInOperator(length), imageIds, null, null, null);
|
+ buildInOperator(length), imageIds, null, null, null);
|
||||||
|
@ -1341,7 +1343,9 @@ public class PodDBAdapter {
|
||||||
+ TABLE_NAME_FEED_MEDIA + " WHERE " + KEY_FEEDITEM + " IN "
|
+ TABLE_NAME_FEED_MEDIA + " WHERE " + KEY_FEEDITEM + " IN "
|
||||||
+ buildInOperator(neededLength), parts);
|
+ buildInOperator(neededLength), parts);
|
||||||
}
|
}
|
||||||
return new MergeCursor(cursors);
|
Cursor result = new MergeCursor(cursors);
|
||||||
|
result.moveToFirst();
|
||||||
|
return result;
|
||||||
} else {
|
} else {
|
||||||
return db.query(TABLE_NAME_FEED_MEDIA, null, KEY_FEEDITEM + " IN "
|
return db.query(TABLE_NAME_FEED_MEDIA, null, KEY_FEEDITEM + " IN "
|
||||||
+ buildInOperator(length), itemIds, null, null, null);
|
+ buildInOperator(length), itemIds, null, null, null);
|
||||||
|
|
Loading…
Reference in New Issue