Added remarks

This commit is contained in:
M66B
2023-12-14 19:37:49 +01:00
parent aba9e355ef
commit 146b8c12e7
8 changed files with 12 additions and 12 deletions

View File

@@ -481,7 +481,7 @@ public abstract class DB extends RoomDatabase {
if (cache_size != null) {
cache_size = -cache_size; // kibibytes
Log.i("Set PRAGMA cache_size=" + cache_size);
// TODO CASA
// TODO CASA PRAGMA does not support placeholders
try (Cursor cursor = db.query("PRAGMA cache_size=" + cache_size + ";")) {
cursor.moveToNext(); // required
}
@@ -502,7 +502,7 @@ public abstract class DB extends RoomDatabase {
// https://www.sqlite.org/pragma.html
for (String pragma : DB_PRAGMAS)
if (!"compile_options".equals(pragma) || BuildConfig.DEBUG) {
// TODO CASA
// TODO CASA PRAGMA does not support placeholders
try (Cursor cursor = db.query("PRAGMA " + pragma + ";")) {
boolean has = false;
while (cursor.moveToNext()) {