make sure we create @encoding before setting encoding
This commit is contained in:
parent
c614c89216
commit
a878ba0272
@ -8,8 +8,8 @@ module Mysql2
|
||||
send(:"#{key}=", opts[key])
|
||||
end
|
||||
# force the encoding to utf8
|
||||
self.charset_name = opts[:encoding] || 'utf8'
|
||||
@encoding = nil
|
||||
self.charset_name = opts[:encoding] || 'utf8'
|
||||
|
||||
ssl_set(*opts.values_at(:sslkey, :sslcert, :sslca, :sslcapath, :sslciper))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user