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
commit8a32b7f2c3787e5fa3c235bc5681930f7873f508 (patch)
treed072d48d1f9e4d70bc56b4bf2c79798964f41863
parentc3d3e85ce863511219b924e400ff0721747afc46 (diff)
downloadprosody-8a32b7f2c3787e5fa3c235bc5681930f7873f508.tar.gz
prosody-8a32b7f2c3787e5fa3c235bc5681930f7873f508.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");