aboutsummaryrefslogtreecommitdiffstats
path: root/util/sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-08-11 10:29:25 +0200
committerKim Alvefur <zash@zash.se>2015-08-11 10:29:25 +0200
commit258f8fd4b40ab68d7d5731097fcb0b1c9ec21dcd (patch)
tree02d74684d9b149679340af6d76c462c2a1d4a0b3 /util/sql.lua
parent26dba92ae79d4ef4b36aeb6e38f9e538e9db8c9a (diff)
parent2b0b78b8b0210906d14f52f70fffefac2a744dba (diff)
downloadprosody-258f8fd4b40ab68d7d5731097fcb0b1c9ec21dcd.tar.gz
prosody-258f8fd4b40ab68d7d5731097fcb0b1c9ec21dcd.zip
Merge 0.10->trunk
Diffstat (limited to 'util/sql.lua')
-rw-r--r--util/sql.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sql.lua b/util/sql.lua
index f934bbdf..be34c381 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -285,7 +285,7 @@ function engine:set_encoding() -- to UTF-8
if not ok then
return ok, err;
end
-
+
if driver == "MySQL" then
local ok, actual_charset = self:transaction(function ()
return self:select"SHOW SESSION VARIABLES LIKE 'character_set_client'";
@@ -297,7 +297,7 @@ function engine:set_encoding() -- to UTF-8
end
end
end
-
+
return true;
end
local engine_mt = { __index = engine };