Small improvement

pull/214/head
M66B 2 years ago
parent 662d3a6c2e
commit d24e641bcb

@ -483,7 +483,7 @@ public abstract class DB extends RoomDatabase {
if (cache_size != null) { if (cache_size != null) {
cache_size = -cache_size; // kibibytes cache_size = -cache_size; // kibibytes
Log.i("Set PRAGMA cache_size=" + cache_size); Log.i("Set PRAGMA cache_size=" + cache_size);
try (Cursor cursor = db.query("PRAGMA cache_size=" + cache_size + ";")) { try (Cursor cursor = db.query(new SimpleSQLiteQuery("PRAGMA cache_size=" + cache_size + ";"))) {
cursor.moveToNext(); // required cursor.moveToNext(); // required
} }
} }

Loading…
Cancel
Save