aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-21 21:12:38 +0200
committerKim Alvefur <zash@zash.se>2018-10-21 21:12:38 +0200
commit649e063e85a683275025e2742480f6d707fbb976 (patch)
tree4cb49967a108bdbd7aff304bbb93f59fae50f990 /plugins/mod_storage_sql.lua
parent58d8c73bf3ad35012a6e9c5169be76ec251dc10d (diff)
downloadprosody-649e063e85a683275025e2742480f6d707fbb976.tar.gz
prosody-649e063e85a683275025e2742480f6d707fbb976.zip
mod_storage_sql: Handle Lua 5.3 move of unpack function
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 ae6a2676..cf92e31c 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -11,7 +11,7 @@ local is_stanza = require"util.stanza".is_stanza;
local t_concat = table.concat;
local noop = function() end
-local unpack = unpack
+local unpack = table.unpack or unpack;
local function iterator(result)
return function(result_)
local row = result_();