From d0fb95959fbc4f14b12f73a30d74437823b4b6c0 Mon Sep 17 00:00:00 2001 From: Grzegorz Orczykowski Date: Mon, 13 Jan 2025 17:37:20 +0100 Subject: [PATCH] Quote the table name during removing entities --- .../android/database/entities/DatabaseEntitiesRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collect_app/src/main/java/org/odk/collect/android/database/entities/DatabaseEntitiesRepository.kt b/collect_app/src/main/java/org/odk/collect/android/database/entities/DatabaseEntitiesRepository.kt index 87d8b39ece6..83dc28616b2 100644 --- a/collect_app/src/main/java/org/odk/collect/android/database/entities/DatabaseEntitiesRepository.kt +++ b/collect_app/src/main/java/org/odk/collect/android/database/entities/DatabaseEntitiesRepository.kt @@ -198,7 +198,7 @@ class DatabaseEntitiesRepository(context: Context, dbPath: String) : EntitiesRep databaseConnection.withConnection { getLists().forEach { writableDatabase.delete( - it, + "`$it`", "${EntitiesTable.COLUMN_ID} = ?", arrayOf(id) )