Isak Hansen
2006-Dec-19 15:13 UTC
Ticket #4513 -- wrapping db:fixtures:load in a transaction
Any chance of having this patch applied? Shouldn''t break anything, I believe, and is pretty useful when your test db has FK constraints. Regards, Isak --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Mislav Marohnić
2006-Dec-19 15:23 UTC
Re: Ticket #4513 -- wrapping db:fixtures:load in a transaction
On 12/19/06, Isak Hansen <isak.hansen@gmail.com> wrote:> > > Shouldn''t break anything, I believeBut it will break stuff. Transaction in this case should be optional, not implicit. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Isak Hansen
2006-Dec-20 10:28 UTC
Re: Ticket #4513 -- wrapping db:fixtures:load in a transaction
On 12/19/06, Mislav Marohni <mislav.marohnic@gmail.com> wrote:> On 12/19/06, Isak Hansen <isak.hansen@gmail.com> wrote: > > > > Shouldn't break anything, I believe > > But it will break stuff.Yup, you're right. I'm sure someone out there depend on the data that gets loaded before the task hits an error and aborts. There's probably other ways for stuff to break as well, or? Transaction in this case should be optional, not> implicit.That doesn't sound like a sensible default to me, but I guess altering behaviour is bad no matter what. Isak> > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---