File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -82,5 +82,6 @@ def self.key_hash_as_symbols(hash)
82
82
else
83
83
::Timeout ::Error
84
84
end
85
+ TIMEOUT_ERROR_NEVER = { TIMEOUT_ERROR_CLASS => :never } . freeze
85
86
end
86
87
end
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ def parse_connect_attrs(conn_attrs)
127
127
end
128
128
129
129
def query ( sql , options = { } )
130
- Thread . handle_interrupt ( ::Mysql2 ::Util ::TIMEOUT_ERROR_CLASS => :never ) do
130
+ Thread . handle_interrupt ( ::Mysql2 ::Util ::TIMEOUT_ERROR_NEVER ) do
131
131
_query ( sql , @query_options . merge ( options ) )
132
132
end
133
133
end
Original file line number Diff line number Diff line change 1
1
module Mysql2
2
2
class Statement
3
3
def execute ( *args , **kwargs )
4
- Thread . handle_interrupt ( ::Mysql2 ::Util ::TIMEOUT_ERROR_CLASS => :never ) do
4
+ Thread . handle_interrupt ( ::Mysql2 ::Util ::TIMEOUT_ERROR_NEVER ) do
5
5
_execute ( *args , **kwargs )
6
6
end
7
7
end
You can’t perform that action at this time.
0 commit comments