# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1491173984 -7200
# Node ID b2681397bafa8ca1799e99e7ce7d5a91eb0a63c6
# Parent  0909de054b3f8e06dc233ef5a396db11f2a2f3f2# Parent  c0f81dea4662b59c9fd5287608ef5c6b3ea7fbb0
Merge 0.10->trunk

diff -r 0909de054b3f -r b2681397bafa plugins/mod_storage_sql.lua
--- a/plugins/mod_storage_sql.lua	Sun Apr 02 23:06:27 2017 +0200
+++ b/plugins/mod_storage_sql.lua	Mon Apr 03 00:59:44 2017 +0200
@@ -95,7 +95,7 @@
 		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