From cfe2898205dcb29063fc9db547615b6b8593fd05 Mon Sep 17 00:00:00 2001 From: James Maina Date: Tue, 11 Apr 2017 17:03:36 +0300 Subject: [PATCH] JM | Fix: lagging when scrolling in registers #434 Signed-off-by: James Maina --- .../main/java/org/ei/opensrp/repository/DetailsRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensrp-app/src/main/java/org/ei/opensrp/repository/DetailsRepository.java b/opensrp-app/src/main/java/org/ei/opensrp/repository/DetailsRepository.java index 483260629..f4a1f70b9 100644 --- a/opensrp-app/src/main/java/org/ei/opensrp/repository/DetailsRepository.java +++ b/opensrp-app/src/main/java/org/ei/opensrp/repository/DetailsRepository.java @@ -81,7 +81,7 @@ public Map getAllDetailsForClient(String baseEntityId) { Map clientDetails = new HashMap(); try { SQLiteDatabase db = masterRepository.getReadableDatabase(); - String query = "SELECT * FROM " + TABLE_NAME + " WHERE " + BASE_ENTITY_ID_COLUMN + " = '"+baseEntityId+"'"; + String query = "SELECT * FROM " + TABLE_NAME + " WHERE " + BASE_ENTITY_ID_COLUMN + " MATCH '\""+baseEntityId+"\"'"; cursor = db.rawQuery(query, null); if (cursor != null && cursor.moveToFirst()){ do {