diff options
author | Kim Alvefur <zash@zash.se> | 2015-07-17 12:43:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-07-17 12:43:04 +0200 |
commit | 97ed1aed6c28bd5949be1dab5381b8bcab6c3454 (patch) | |
tree | 6def594ae3aa4926967d53d48cb4b3b6ebc5aa82 /util/sql.lua | |
parent | 376dd433962a1a897a239d06dbc91d3e03290fe3 (diff) | |
download | prosody-97ed1aed6c28bd5949be1dab5381b8bcab6c3454.tar.gz prosody-97ed1aed6c28bd5949be1dab5381b8bcab6c3454.zip |
util.{interpolation,prosodyctl,sql}: Trim trailing whitespace
Diffstat (limited to 'util/sql.lua')
-rw-r--r-- | util/sql.lua | 4 |
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 }; |