Diff

util/sql.lua @ 7180:0d7f80263813

util.sql: Localize unpack() in Lua 5.2 compatible way
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 17:30:12 +0100
parent 7174:d350e475f94e
child 7272:a23ca90d1984
line wrap: on
line diff
--- 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;