util.sql: Localize unpack() in Lua 5.2 compatible way
authorKim Alvefur <zash@zash.se>
Mon, 22 Feb 2016 17:30:12 +0100
changeset 7183 0d7f80263813
parent 7181 5953f415c815
child 7184 8af558965da3
util.sql: Localize unpack() in Lua 5.2 compatible way
util/sql.lua
--- a/util/sql.lua	Mon Feb 22 15:23:27 2016 +0100
+++ b/util/sql.lua	Mon Feb 22 17:30:12 2016 +0100
@@ -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;