# HG changeset patch # User Matthew Wild # Date 1458735448 0 # Node ID b4e99602ae753276096a14a9c9a568a51e4abf71 # Parent e9526dd3e8fce256fdfd9caf6cad1171558b35c4 util.sql: Charset should be innocent until proven guilty (initialize charset_ok to true), fixes bug introduced in 187ba2e9c012 diff -r e9526dd3e8fc -r b4e99602ae75 util/sql.lua --- a/util/sql.lua Tue Mar 22 14:42:55 2016 +0100 +++ b/util/sql.lua Wed Mar 23 12:17:28 2016 +0000 @@ -328,7 +328,7 @@ 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);