We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67d1b16 commit 4d7fe4eCopy full SHA for 4d7fe4e
lib/mysql2/client.rb
@@ -36,7 +36,7 @@ def initialize(opts = {})
36
when :reconnect, :local_infile, :secure_auth, :automatic_close
37
send(:"#{key}=", !!opts[key]) # rubocop:disable Style/DoubleNegation
38
when :connect_timeout, :read_timeout, :write_timeout
39
- send(:"#{key}=", opts[key]) unless opts[key].nil?
+ send(:"#{key}=", opts[key].to_i) unless opts[key].nil?
40
else
41
send(:"#{key}=", opts[key])
42
end
0 commit comments