aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commit0cb02539685166fe4da93b616d83267ffb73b8a3 (patch)
tree84a34a6ade952d38a6e081371a008d03de079e12 /util
parenta1bba9eeab3263061a2b1e1634847b3ed4002e20 (diff)
downloadprosody-0cb02539685166fe4da93b616d83267ffb73b8a3.tar.gz
prosody-0cb02539685166fe4da93b616d83267ffb73b8a3.zip
util.sql: Localize unpack() in Lua 5.2 compatible way
Diffstat (limited to 'util')
-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;