diff options
| author | George Hazan <ghazan@miranda.im> | 2019-06-05 21:05:14 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2019-06-05 21:05:20 +0300 |
| commit | b515831e79209ee175978d2510a9d44ffe76b272 (patch) | |
| tree | a2ff7c7fd7a67b26a2c21ebcc7085cb6b2159ec4 | |
| parent | c22f76eeab94fd1c79bd9dbacd275f354f5e0f04 (diff) | |
fix against insertion of duplicate records for subs
| -rwxr-xr-x | plugins/Dbx_sqlite/src/dbevents.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 7f3077e6a6..d8d12b02dc 100755 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -176,7 +176,7 @@ MEVENT CDbxSQLite::AddEvent(MCONTACT hContact, DBEVENTINFO *dbei) stmt = evt_stmts_prep[SQL_EVT_STMT_ADDEVENT_SRT]; sqlite3_bind_int64(stmt, 1, hDbEvent); - sqlite3_bind_int64(stmt, 2, hContact); + sqlite3_bind_int64(stmt, 2, cc->contactID); sqlite3_bind_int64(stmt, 3, dbei->timestamp); rc = sqlite3_step(stmt); assert(rc == SQLITE_DONE); |
