aboutsummaryrefslogtreecommitdiffstats
path: root/util/sql.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-11-10 23:10:27 +0000
committerMatthew Wild <mwild1@gmail.com>2013-11-10 23:10:27 +0000
commita80e00e16f382874e7caffd60b37160fc2d81f5b (patch)
tree3bdc564c5d4d63d058998b6aaa0b5c79962aacb0 /util/sql.lua
parent812962fee3c19f531533e92cab7a692e265918b9 (diff)
downloadprosody-a80e00e16f382874e7caffd60b37160fc2d81f5b.tar.gz
prosody-a80e00e16f382874e7caffd60b37160fc2d81f5b.zip
util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng)
Diffstat (limited to 'util/sql.lua')
-rw-r--r--util/sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sql.lua b/util/sql.lua
index 735fbce8..07b1a4e0 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -313,7 +313,7 @@ function engine:set_encoding() -- to UTF-8
charset = row and row[1] or charset;
end
self.charset = charset;
- return self:transaction(function() return engine:execute(set_names_query:format(charset)); end);
+ return self:transaction(function() return self:execute(set_names_query:format(charset)); end);
end
local engine_mt = { __index = engine };