diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-22 17:30:12 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-22 17:30:12 +0100 |
commit | 0cb02539685166fe4da93b616d83267ffb73b8a3 (patch) | |
tree | 84a34a6ade952d38a6e081371a008d03de079e12 /util | |
parent | a1bba9eeab3263061a2b1e1634847b3ed4002e20 (diff) | |
download | prosody-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.lua | 2 |
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; |