diff options
author | Kim Alvefur <zash@zash.se> | 2015-07-05 18:00:05 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-07-05 18:00:05 +0200 |
commit | 31895cd45fbb41608ae19a3c02013d5ee5263f38 (patch) | |
tree | ffbe134470891e53fe689b44843c22b48c6b680b /util/sql.lua | |
parent | 21aa02fd1b769ae89fccfd2cd84756f918e2f152 (diff) | |
parent | 3dd49f5620ef6860767fee2904399a77e242e10e (diff) | |
download | prosody-31895cd45fbb41608ae19a3c02013d5ee5263f38.tar.gz prosody-31895cd45fbb41608ae19a3c02013d5ee5263f38.zip |
Merge 0.10->trunk
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 |