diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-10 18:40:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-10 18:40:42 +0300 |
commit | d653166c6ee7345b8858e17bcc07a03229b23131 (patch) | |
tree | bc22852575443e019a69b26f12972ddef3e75e68 /plugins | |
parent | 11a1c4271bcde67674e5ac1dd1b853a647f9f57c (diff) |
fixes #2121 ([dbx_sqlite] Event updates do not work properly)
Diffstat (limited to 'plugins')
-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 170f5ab15f..1ae0fb0663 100755 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -36,7 +36,7 @@ static CQuery evt_stmts[] = { "SELECT COUNT(1) FROM events_srt WHERE contact_id = ? LIMIT 1;" }, { "INSERT INTO events(contact_id, module, timestamp, type, flags, data, server_id) VALUES (?, ?, ?, ?, ?, ?, ?);" }, { "DELETE FROM events WHERE id = ?;" }, - { "UPDATE events SET module = ?, timestamp = ?, type = ?, flags = ?, blob = ? WHERE id = ?;" }, + { "UPDATE events SET module = ?, timestamp = ?, type = ?, flags = ?, data = ? WHERE id = ?;" }, { "SELECT LENGTH(data) FROM events WHERE id = ? LIMIT 1;" }, { "SELECT module, timestamp, type, flags, length(data), data FROM events WHERE id = ? LIMIT 1;" }, { "SELECT flags FROM events WHERE id = ? LIMIT 1;" }, |