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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to