rails/rails — pull request #10438 by smasry (2013-05-03 05:10:00+00:00)
Title: Fix for Active Record mysql/mysql2 tests

1) Failure:
DefaultsTestWithoutTransactionalFixtures#test_mysql_integer_not_null_defaults [/home/travis/build/rails/rails/activerecord/test/cases/defaults_test.rb:138]:
ActiveRecord::StatementInvalid expected but nothing was raised.

The issue was caused by 2088bf2 ... the setup and tear down for test/cases/adapters/mysql2/active_schema_test.rb overrides the adapter's execute method to just return the sql rather execute it which doesn't allow the mysql session variables to be set. Which causes strict mode not to get set after the reconnect!