Avoid SQLite statement cache full warning

This commit is contained in:
Ciaran Gultnieks 2012-10-24 15:02:17 +01:00
parent 51a67efdf1
commit c2cd6a9c66

View File

@ -562,9 +562,13 @@ public class DB {
for (Apk apk : app.apks) {
if (apkrepo == 0 || apkrepo == apk.repo) {
c = db.query(TABLE_APK, cols, "id = ? and vercode = "
+ Integer.toString(apk.vercode),
new String[] { apk.id }, null, null, null, null);
c = db.query(
TABLE_APK,
cols,
"id = ? and vercode = ?",
new String[] { apk.id,
Integer.toString(apk.vercode) }, null,
null, null, null);
c.moveToFirst();
apk.detail_hash = c.getString(0);
apk.detail_hashType = c.getString(1);