aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-07 09:29:04 +0100
committerKim Alvefur <zash@zash.se>2017-11-07 09:29:04 +0100
commitd9535fcf4fc359d3003e4a1c49b2a437d9dda1af (patch)
treec5324b65d949a7b05c6acc45c22fa0e40085dbb5
parentcb98c5a29371257b5049f08c35dfdbe5b7ba950d (diff)
parentd2b548562ff5ed2d39874aa460cc573241c5fe35 (diff)
downloadprosody-d9535fcf4fc359d3003e4a1c49b2a437d9dda1af.tar.gz
prosody-d9535fcf4fc359d3003e4a1c49b2a437d9dda1af.zip
Merge 0.10->trunk
-rw-r--r--util/sql.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sql.lua b/util/sql.lua
index 71158d4c..d964025e 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -236,7 +236,8 @@ function engine:_transaction(func, ...)
if success then
log("debug", "SQL transaction success [%s]", tostring(func));
local ok, err = self.conn:commit();
- if not ok then return ok, err; end -- commit failed
+ -- LuaDBI doesn't actually return an error message here, just a boolean
+ if not ok then return ok, err or "commit failed"; end
return success, a, b, c;
else
log("debug", "SQL transaction failure [%s]: %s", tostring(func), a.err);