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
commit97ed1aed6c28bd5949be1dab5381b8bcab6c3454 (patch)
tree6def594ae3aa4926967d53d48cb4b3b6ebc5aa82 /util/sql.lua
parent376dd433962a1a897a239d06dbc91d3e03290fe3 (diff)
downloadprosody-97ed1aed6c28bd5949be1dab5381b8bcab6c3454.tar.gz
prosody-97ed1aed6c28bd5949be1dab5381b8bcab6c3454.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 };