# HG changeset patch # User Kim Alvefur # Date 1456158612 -3600 # Node ID 0d7f802638135a3f465733eaa017ccd6c9ff00ed # Parent 5953f415c81514e7b88f33f1cd3ac93d34f44376 util.sql: Localize unpack() in Lua 5.2 compatible way diff -r 5953f415c815 -r 0d7f80263813 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;