http://dev.rubyonrails.org/ticket/9239
We have a system with multiple databases. The main part is in postgres, and we have a few tables in mysql. A problem occurs when loading fixtures, because, while it performs the INSERT statement on the correct database, it is quoted according to the database configured as ActiveRecord::Base.connection. In our case, it quotes the column names in the mysql statements, which causes a syntax error.
This patch fixes the Fixture class to use the correct connection object in the same way that the Fixtures class already does. No tests yet, if anyone has any suggestions on how to test this, I'm all ears. That said, it doesn't break any of the existing tests.
Thanks, Paul Sadauskas