rails/rails — pull request #6648 by kennyj (2012-06-06 13:47:40+00:00)
Title: Use mysql native commands when dumping/loading on mysql. Partially Fix #5547.

Please see https://github.com/rails/rails/issues/5547.

@daemon says:

> For mysql/oracle rake task db:structure:dump has it's own dumper implementation, but for other databases it uses external utils to build dump.
>
> And it does matter when you use views/triggers/procedures with mysql: tests are simply failing because mentioned objects are missing in test db after dump/load.

I agree with him.

p.s. I want to tell me where to write the test cases of this (railties ? but this is mysql speficic fix)