aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-05-22 02:16:11 +0100
committerMatthew Wild <mwild1@gmail.com>2016-05-22 02:16:11 +0100
commit5a2ab12a7dca1686f92b7625f2ce400b5b178c56 (patch)
treed072d48d1f9e4d70bc56b4bf2c79798964f41863
parent6e9ced38abe48ef15310ccc0d1fa93530e217cca (diff)
downloadprosody-5a2ab12a7dca1686f92b7625f2ce400b5b178c56.tar.gz
prosody-5a2ab12a7dca1686f92b7625f2ce400b5b178c56.zip
util.sql: Import pcall (fixes #677)
-rw-r--r--util/sql.lua2
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");