Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7178:5953f415c815 | 7180:0d7f80263813 |
---|---|
1 | 1 |
2 local setmetatable, getmetatable = setmetatable, getmetatable; | 2 local setmetatable, getmetatable = setmetatable, getmetatable; |
3 local ipairs, unpack, select = ipairs, unpack, select; | 3 local ipairs, unpack, select = ipairs, table.unpack or unpack, select; --luacheck: ignore 113 |
4 local tonumber, tostring = tonumber, tostring; | 4 local tonumber, tostring = tonumber, tostring; |
5 local assert, xpcall, debug_traceback = assert, xpcall, debug.traceback; | 5 local assert, xpcall, debug_traceback = assert, xpcall, debug.traceback; |
6 local t_concat = table.concat; | 6 local t_concat = table.concat; |
7 local s_char = string.char; | 7 local s_char = string.char; |
8 local log = require "util.logger".init("sql"); | 8 local log = require "util.logger".init("sql"); |