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 deda0c7 commit cb564e3Copy full SHA for cb564e3
.rubocop.yml
@@ -22,6 +22,15 @@ Style/TrailingComma:
22
Style/TrivialAccessors:
23
AllowPredicates: true
24
25
+Metrics/AbcSize:
26
+ Max: 82
27
+
28
+Metrics/CyclomaticComplexity:
29
+ Max: 28
30
31
+Metrics/MethodLength:
32
+ Max: 55
33
34
# TODO: remove when we end support for < 1.9.3
35
36
Style/HashSyntax:
lib/mysql2/client.rb
@@ -19,6 +19,7 @@ def self.default_query_options
19
end
20
21
def initialize(opts = {})
+ fail Mysql2::Error, "Options parameter must be a Hash" unless opts.is_a? Hash
opts = Mysql2::Util.key_hash_as_symbols(opts)
@read_timeout = nil
@query_options = self.class.default_query_options.dup
0 commit comments