From 3da993ce5321909eb42c8e1ebd7a6aa6a1344d69 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Wed, 21 Jul 2010 13:13:08 -0700 Subject: [PATCH] prevent ruby warning when attempting to lookup the @encoding ivar before it exists --- lib/mysql2/client.rb | 1 + 1 file changed, 1 insertion(+) 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))