projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab7d97d
)
util.sql: Localize unpack() in Lua 5.2 compatible way
author
Kim Alvefur
<zash@zash.se>
Mon, 22 Feb 2016 16:30:12 +0000
(17:30 +0100)
committer
Kim Alvefur
<zash@zash.se>
Mon, 22 Feb 2016 16:30:12 +0000
(17:30 +0100)
util/sql.lua
patch
|
blob
|
history
diff --git
a/util/sql.lua
b/util/sql.lua
index b4d1453724716d838a9d3d714ef1e4ab2effa9f5..9981ac3cbfd464f2ff0e193dc5c6cef82f6d2556 100644
(file)
--- 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;