aboutsummaryrefslogtreecommitdiffstats
path: root/util/sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-07-17 12:43:04 +0200
committerKim Alvefur <zash@zash.se>2015-07-17 12:43:04 +0200
commitd6ff4a457af04703e536c952234629051b8bee12 (patch)
tree6def594ae3aa4926967d53d48cb4b3b6ebc5aa82 /util/sql.lua
parentc38e034cf497a13f5f813b7d5217102ffb3677d9 (diff)
downloadprosody-d6ff4a457af04703e536c952234629051b8bee12.tar.gz
prosody-d6ff4a457af04703e536c952234629051b8bee12.zip
util.{interpolation,prosodyctl,sql}: Trim trailing whitespace
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 };