projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41ecd82
)
util.sql: Import pcall (fixes #677)
author
Matthew Wild
<mwild1@gmail.com>
Sun, 22 May 2016 01:16:11 +0000
(
02:16
+0100)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 22 May 2016 01:16:11 +0000
(
02:16
+0100)
util/sql.lua
patch
|
blob
|
history
diff --git
a/util/sql.lua
b/util/sql.lua
index acdf9c6390ceffea97c37b6cb08b315313ae9125..843e7ddac74714911e048badf3479e1c7e3f331d 100644
(file)
--- a/
util/sql.lua
+++ b/
util/sql.lua
@@
-2,7
+2,7
@@
local setmetatable, getmetatable = setmetatable, getmetatable;
local ipairs, unpack, select = ipairs, table.unpack or unpack, select; --luacheck: ignore 113
local tonumber, tostring = tonumber, tostring;
local setmetatable, getmetatable = setmetatable, getmetatable;
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 assert,
pcall, xpcall, debug_traceback = assert, pcall
, xpcall, debug.traceback;
local t_concat = table.concat;
local s_char = string.char;
local log = require "util.logger".init("sql");
local t_concat = table.concat;
local s_char = string.char;
local log = require "util.logger".init("sql");