Skip to content

Commit 712b61a

Browse files
committed
Bug: 467378 - Char escape in DatabaseMessageStore
Adding a missed "=?" in SQLite query for getArrivedRowCount Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent 8b10168 commit 712b61a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service

org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service/DatabaseMessageStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private int getArrivedRowCount(String clientHandle) {
210210
String[] projection = {
211211
MqttServiceConstants.MESSAGE_ID,
212212
};
213-
String selection = MqttServiceConstants.CLIENT_HANDLE;
213+
String selection = MqttServiceConstants.CLIENT_HANDLE + "=?";
214214
String[] selectionArgs = new String[1];
215215
selectionArgs[0] = clientHandle;
216216
Cursor c = db.query(

0 commit comments

Comments
 (0)