diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-03-23 12:17:28 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-03-23 12:17:28 +0000 |
commit | 8005cf6813739ada38ad073f7a768d1667bdb8c5 (patch) | |
tree | e8be0aa66d9a33aac1ad88f64fac748b422ff7a0 /util/sql.lua | |
parent | bb2806c6ee62a56bfca1fe772eb99699ac1de514 (diff) | |
download | prosody-8005cf6813739ada38ad073f7a768d1667bdb8c5.tar.gz prosody-8005cf6813739ada38ad073f7a768d1667bdb8c5.zip |
util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012
Diffstat (limited to 'util/sql.lua')
-rw-r--r-- | util/sql.lua | 2 |
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); |