prevent ruby warning when attempting to lookup the @encoding ivar before it exists

This commit is contained in:
Brian Lopez 2010-07-21 13:13:08 -07:00
parent cd1a2bf9ff
commit 3da993ce53
1 changed files with 1 additions and 0 deletions

View File

@ -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))