When truncate operation occurs on mysql database the FOREIGN_KEY_CHECKS is modified and when restored, it is set to an arbitrary ("1") value and the previous value is lost.
In some case we use this trick to allow phpunit to populate database from dataset without foreign key errors:
I merged this pull request without testing it. I do not use DbUnit myself and trust the existing tests as well comments on the pull requests that this does not break anything and solves a problem.
Hi,
When truncate operation occurs on mysql database the FOREIGN_KEY_CHECKS is modified and when restored, it is set to an arbitrary ("1") value and the previous value is lost.
In some case we use this trick to allow phpunit to populate database from dataset without foreign key errors:
The truncate operations conflicts with this and this PR aims to fix that.