From 97ed1aed6c28bd5949be1dab5381b8bcab6c3454 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 17 Jul 2015 12:43:04 +0200 Subject: util.{interpolation,prosodyctl,sql}: Trim trailing whitespace --- util/sql.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/sql.lua') 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 }; -- cgit v1.2.3