提交 e70bab2a 编写于 作者: C Carlos Antonio da Silva

Merge pull request #8381 from aderyabin/unnecessary_monkey_patch

Remove outdated monkey patch in mysql tests
......@@ -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')
......
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册