aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/support/mysql.rb
blob: 7a66415e64a836a5f0ca78a55b4b03846a4183d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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