diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-07-06 17:07:05 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-07-06 17:07:05 +0100 |
commit | 855cb99f3c81b03fdeb27896d59ed9b66900ae02 (patch) | |
tree | 116641904bf26766fe52624f4ef7af24d77ae2ee /util/sql.lua | |
parent | e6b0ecf2435c94405c08f5ffd7d595f0b75cc8a4 (diff) | |
parent | 5292b8232a0cb961cc2d301556a179505ba98dee (diff) | |
download | prosody-855cb99f3c81b03fdeb27896d59ed9b66900ae02.tar.gz prosody-855cb99f3c81b03fdeb27896d59ed9b66900ae02.zip |
Merge with 0.10
Diffstat (limited to 'util/sql.lua')
-rw-r--r-- | util/sql.lua | 4 |
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 |