mod_storage_sql: Fix to use correct SQL query (thanks carlos)

vault/0.11
Kim Alvefur 9 years ago
parent 879f2148f6
commit 1464d90adb
  1. 2
      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

Loading…
Cancel
Save