Changeset

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
parents 7178:5953f415c815
children 7181:8af558965da3
files util/sql.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;