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 | 31770d0b8f6687434de63a8a41bda018bebd203b (patch) | |
tree | 116641904bf26766fe52624f4ef7af24d77ae2ee /util | |
parent | 2aae33a4f0f71c25e6d4aeb9a17c6eb092f7c4ca (diff) | |
parent | 19ac6e09eb3da1e0674ee4cb6cffc2cd88a64b43 (diff) | |
download | prosody-31770d0b8f6687434de63a8a41bda018bebd203b.tar.gz prosody-31770d0b8f6687434de63a8a41bda018bebd203b.zip |
Merge with 0.10
Diffstat (limited to 'util')
-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 |