aboutsummaryrefslogtreecommitdiffstats
path: root/util/sql.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/sql.lua')
-rw-r--r--util/sql.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/sql.lua b/util/sql.lua
index 92032f43..dedef435 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -111,7 +111,10 @@ function engine:connect()
self.conn = dbh;
self.prepared = {};
self:set_encoding();
- self:onconnect();
+ local ok, err = self:onconnect();
+ if ok == false then
+ return ok, err;
+ end
return true;
end
function engine:onconnect()