Permalink
Browse files

Merge pull request #8381 from aderyabin/unnecessary_monkey_patch

Remove outdated monkey patch in mysql tests
  • Loading branch information...
carlosantoniodasilva committed Nov 30, 2012
2 parents 0a6afef + da67d19 commit e70bab2a8d43bc1b862eca08d24510410abcbb0b
Showing with 0 additions and 13 deletions.
  1. +0 −2 activerecord/test/cases/helper.rb
  2. +0 −11 activerecord/test/support/mysql.rb
@@ -22,8 +22,6 @@
# Connect to the database
ARTest.connect
-require 'support/mysql'
-
# Quote "type" if it's a reserved word for the current connection.
QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type')
@@ -1,11 +0,0 @@
-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

0 comments on commit e70bab2

Please sign in to comment.