aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-07-06 17:07:05 +0100
committerMatthew Wild <mwild1@gmail.com>2015-07-06 17:07:05 +0100
commit31770d0b8f6687434de63a8a41bda018bebd203b (patch)
tree116641904bf26766fe52624f4ef7af24d77ae2ee /util
parent2aae33a4f0f71c25e6d4aeb9a17c6eb092f7c4ca (diff)
parent19ac6e09eb3da1e0674ee4cb6cffc2cd88a64b43 (diff)
downloadprosody-31770d0b8f6687434de63a8a41bda018bebd203b.tar.gz
prosody-31770d0b8f6687434de63a8a41bda018bebd203b.zip
Merge with 0.10
Diffstat (limited to 'util')
-rw-r--r--util/sql.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/sql.lua b/util/sql.lua
index 5aa12f94..92032f43 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -111,8 +111,12 @@ function engine:connect()
self.conn = dbh;
self.prepared = {};
self:set_encoding();
+ self:onconnect();
return true;
end
+function engine:onconnect()
+ -- Override from create_engine()
+end
function engine:execute(sql, ...)
local success, err = self:connect();
if not success then return success, err; end