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 | 58a6a4b140a317a9e77c803dfda08c5e4770e3fa (patch) | |
tree | 84a34a6ade952d38a6e081371a008d03de079e12 /util/sql.lua | |
parent | 7ebc652e1dde5db4ba00782579a1948b912fa930 (diff) | |
download | prosody-58a6a4b140a317a9e77c803dfda08c5e4770e3fa.tar.gz prosody-58a6a4b140a317a9e77c803dfda08c5e4770e3fa.zip |
util.sql: Localize unpack() in Lua 5.2 compatible way
Diffstat (limited to 'util/sql.lua')
-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; |