prevent ruby warning when attempting to lookup the @encoding ivar before it exists
This commit is contained in:
parent
cd1a2bf9ff
commit
3da993ce53
|
@ -9,6 +9,7 @@ module Mysql2
|
||||||
end
|
end
|
||||||
# force the encoding to utf8
|
# force the encoding to utf8
|
||||||
self.charset_name = opts[:encoding] || 'utf8'
|
self.charset_name = opts[:encoding] || 'utf8'
|
||||||
|
@encoding = nil
|
||||||
|
|
||||||
ssl_set(*opts.values_at(:sslkey, :sslcert, :sslca, :sslcapath, :sslciper))
|
ssl_set(*opts.values_at(:sslkey, :sslcert, :sslca, :sslcapath, :sslciper))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue