From 9897de74d6cd7bbf2ecd78dcdd6b13624772733a Mon Sep 17 00:00:00 2001 From: Nishant Chaprana Date: Thu, 25 Jul 2019 19:30:31 +0530 Subject: [PATCH] [Fix] device insertion failed issue due to mismatched query arguments. Change-Id: I30aa462cfed2199c7d30630b7bc1f7d254ee1a55 Signed-off-by: Nishant Chaprana --- ua-daemon/src/ua-manager-device-db.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ua-daemon/src/ua-manager-device-db.c b/ua-daemon/src/ua-manager-device-db.c index 85749b7..5a97dc3 100644 --- a/ua-daemon/src/ua-manager-device-db.c +++ b/ua-daemon/src/ua-manager-device-db.c @@ -586,9 +586,9 @@ int _ua_device_db_insert_device_info(int user_id, const uam_device_info_s *dev_i DB_ACTION(sqlite3_bind_int64(stmt, 5, timestamp)); DB_ACTION(sqlite3_bind_int(stmt, 6, presence_state)); DB_ACTION(sqlite3_bind_int(stmt, 7, dev_info->operating_system)); - DB_ACTION(sqlite3_bind_int(stmt, 9, user_id)); - DB_ACTION(sqlite3_bind_int(stmt, 10, dev_info->discriminant)); - DB_ACTION(sqlite3_bind_int(stmt, 11, max_device_number + 1)); + DB_ACTION(sqlite3_bind_int(stmt, 8, user_id)); + DB_ACTION(sqlite3_bind_int(stmt, 9, dev_info->discriminant)); + DB_ACTION(sqlite3_bind_int(stmt, 10, max_device_number + 1)); if (sqlite3_step(stmt) != SQLITE_DONE) { UAM_ERR("Failed to insert device info: %s", -- 2.7.4