mod_storage_sql: Handle Lua 5.3 move of unpack function
authorKim Alvefur <zash@zash.se>
Sun, 21 Oct 2018 21:12:38 +0200
changeset 9540 5fe1b08e6353
parent 9539 4803ab9a5983
child 9541 07665733b332
mod_storage_sql: Handle Lua 5.3 move of unpack function
plugins/mod_storage_sql.lua
--- a/plugins/mod_storage_sql.lua	Sun Oct 21 21:03:54 2018 +0200
+++ b/plugins/mod_storage_sql.lua	Sun Oct 21 21:12:38 2018 +0200
@@ -11,7 +11,7 @@
 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_();