Adding fix for AR mysql tests fixes #10402

What's happening with this test is strict mode is being turned off from another test being run before.  Strict mode just needs to be turned back on in the session.

Fix for #10402
/cc @tenderlove @carlosantoniodasilva