aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-03 00:34:37 +0200
committerKim Alvefur <zash@zash.se>2017-04-03 00:34:37 +0200
commit1464d90adbcb4bc02af8974ede36707a5be2c2cb (patch)
tree526c84498addb98487bbc5c1ac56095343651fc8 /plugins/mod_storage_sql.lua
parent879f2148f684a9e234dc042e45e7fd49f376ac2d (diff)
downloadprosody-1464d90adbcb4bc02af8974ede36707a5be2c2cb.tar.gz
prosody-1464d90adbcb4bc02af8974ede36707a5be2c2cb.zip
mod_storage_sql: Fix to use correct SQL query (thanks carlos)
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index a04a39a0..216b3be4 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -95,7 +95,7 @@ local function keyval_store_set(data)
for key, value in pairs(data) do
if type(key) == "string" and key ~= "" then
local t, encoded_value = assert(serialize(value));
- engine:insert(delete_sql, host, user or "", store, key, t, encoded_value);
+ engine:insert(insert_sql, host, user or "", store, key, t, encoded_value);
else
extradata[key] = value;
end