diff --git a/lib/mysql2/client.rb b/lib/mysql2/client.rb index e49ed4b..95dd6e4 100644 --- a/lib/mysql2/client.rb +++ b/lib/mysql2/client.rb @@ -9,6 +9,7 @@ module Mysql2 end # force the encoding to utf8 self.charset_name = opts[:encoding] || 'utf8' + @encoding = nil ssl_set(*opts.values_at(:sslkey, :sslcert, :sslca, :sslcapath, :sslciper))