diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-05-22 02:16:11 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-05-22 02:16:11 +0100 |
commit | 5a2ab12a7dca1686f92b7625f2ce400b5b178c56 (patch) | |
tree | d072d48d1f9e4d70bc56b4bf2c79798964f41863 /util/sql.lua | |
parent | 6e9ced38abe48ef15310ccc0d1fa93530e217cca (diff) | |
download | prosody-5a2ab12a7dca1686f92b7625f2ce400b5b178c56.tar.gz prosody-5a2ab12a7dca1686f92b7625f2ce400b5b178c56.zip |
util.sql: Import pcall (fixes #677)
Diffstat (limited to 'util/sql.lua')
-rw-r--r-- | util/sql.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sql.lua b/util/sql.lua index acdf9c63..843e7dda 100644 --- 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 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"); |