mirror of
https://github.com/eclipse/paho.mqtt.android.git
synced 2025-05-09 02:41:15 +08:00
Bug: 467378 - Char escape in DatabaseMessageStore
Adding a missed "=?" in SQLite query for getArrivedRowCount Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
This commit is contained in:
parent
0cbb916896
commit
56cb1fbd28
@ -210,7 +210,7 @@ class DatabaseMessageStore implements MessageStore {
|
|||||||
String[] projection = {
|
String[] projection = {
|
||||||
MqttServiceConstants.MESSAGE_ID,
|
MqttServiceConstants.MESSAGE_ID,
|
||||||
};
|
};
|
||||||
String selection = MqttServiceConstants.CLIENT_HANDLE;
|
String selection = MqttServiceConstants.CLIENT_HANDLE + "=?";
|
||||||
String[] selectionArgs = new String[1];
|
String[] selectionArgs = new String[1];
|
||||||
selectionArgs[0] = clientHandle;
|
selectionArgs[0] = clientHandle;
|
||||||
Cursor c = db.query(
|
Cursor c = db.query(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user