util.sql: Localize unpack() in Lua 5.2 compatible way
authorKim Alvefur <zash@zash.se>
Mon, 22 Feb 2016 16:30:12 +0000 (17:30 +0100)
committerKim Alvefur <zash@zash.se>
Mon, 22 Feb 2016 16:30:12 +0000 (17:30 +0100)
util/sql.lua

index b4d1453724716d838a9d3d714ef1e4ab2effa9f5..9981ac3cbfd464f2ff0e193dc5c6cef82f6d2556 100644 (file)
@@ -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;