aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-22 17:30:12 +0100
committerKim Alvefur <zash@zash.se>2016-02-22 17:30:12 +0100
commit58a6a4b140a317a9e77c803dfda08c5e4770e3fa (patch)
tree84a34a6ade952d38a6e081371a008d03de079e12
parent7ebc652e1dde5db4ba00782579a1948b912fa930 (diff)
downloadprosody-58a6a4b140a317a9e77c803dfda08c5e4770e3fa.tar.gz
prosody-58a6a4b140a317a9e77c803dfda08c5e4770e3fa.zip
util.sql: Localize unpack() in Lua 5.2 compatible way
-rw-r--r--util/sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sql.lua b/util/sql.lua
index b4d14537..9981ac3c 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -1,6 +1,6 @@
local setmetatable, getmetatable = setmetatable, getmetatable;
-local ipairs, unpack, select = ipairs, unpack, select;
+local ipairs, unpack, select = ipairs, table.unpack or unpack, select; --luacheck: ignore 113
local tonumber, tostring = tonumber, tostring;
local assert, xpcall, debug_traceback = assert, xpcall, debug.traceback;
local t_concat = table.concat;