From 1464d90adbcb4bc02af8974ede36707a5be2c2cb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 3 Apr 2017 00:34:37 +0200 Subject: mod_storage_sql: Fix to use correct SQL query (thanks carlos) --- plugins/mod_storage_sql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3