aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-03-23 12:19:23 +0000
committerMatthew Wild <mwild1@gmail.com>2016-03-23 12:19:23 +0000
commit5aed00374715e5ca0149888dcd0df88291015809 (patch)
tree19bbee1ddaa22369aec0f6558391969263a27aa2 /util
parent977314dc5ab03c9fb03ad59932b674a25f71ccff (diff)
parentc50a32df40853786330503ea52ffea6c040a212b (diff)
downloadprosody-5aed00374715e5ca0149888dcd0df88291015809.tar.gz
prosody-5aed00374715e5ca0149888dcd0df88291015809.zip
Merge 0.10->trunk
Diffstat (limited to 'util')
-rw-r--r--util/sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sql.lua b/util/sql.lua
index f64e8e10..657acb79 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -328,7 +328,7 @@ function engine:set_encoding() -- to UTF-8
local ok, actual_charset = self:transaction(function ()
return self:select"SHOW SESSION VARIABLES LIKE 'character_set_client'";
end);
- local charset_ok;
+ local charset_ok = true;
for row in actual_charset do
if row[2] ~= charset then
log("error", "MySQL %s is actually %q (expected %q)", row[1], row[2], charset);