amatsuda / database_rewinder

minimalist's tiny and ultra-fast database cleaner
MIT License
806 stars 92 forks source link

Add disable FOREIGN_KEY_CHECK statement #45

Closed joker1007 closed 8 years ago

joker1007 commented 8 years ago

If MySQL2::Client::MULTI_STATEMENTS is off, this gem creates new connection. Because of it, FOREIGN_KEY_CHECK is enabled again.

amatsuda commented 8 years ago

@joker1007 Yep, that would do the fix. Thanks! But why no tests? :trollface:

joker1007 commented 8 years ago

Ah sorry. I should have added new test case as you say.

amatsuda commented 8 years ago

No worries, I was just trolling. Thank you for your quick fix!