# HG changeset patch # User Kim Alvefur # Date 1432052649 -7200 # Node ID 41725f3df3cc79b84db24811548524b4f4615e8f # Parent a8dbfa14e1a88885f46c69d26f0f53d1c302418c mod_storage_sql2: Change order of arguments to :append to be the same as return values from :find iterator diff -r a8dbfa14e1a8 -r 41725f3df3cc plugins/mod_storage_sql2.lua --- a/plugins/mod_storage_sql2.lua Tue May 19 18:21:23 2015 +0200 +++ b/plugins/mod_storage_sql2.lua Tue May 19 18:24:09 2015 +0200 @@ -216,9 +216,9 @@ local archive_store = {} archive_store.__index = archive_store -function archive_store:append(username, key, when, with, value) - if value == nil then -- COMPAT early versions - when, with, value, key = key, when, with, value +function archive_store:append(username, key, value, when, with) + if type(when) ~= "number" then + value, when, with = when, with, value; end local user,store = username,self.store; return engine:transaction(function()