1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/support/mysql.rb

11 lines
307 B
Ruby

if defined?(Mysql)
class Mysql
class Error
# This monkey patch fixes annoy warning with mysql-2.8.1.gem when executing testcases.
def errno_with_fix_warnings
silence_warnings { errno_without_fix_warnings }
end
alias_method_chain :errno, :fix_warnings
end
end
end