springtestdbunit / spring-test-dbunit

Integration between the Spring testing framework and DBUnit
http://springtestdbunit.github.com/spring-test-dbunit/
Apache License 2.0
476 stars 238 forks source link

CLEAR_INSERT does not disable table constraints prior to executing the DeleteAllOperation #133

Open jpopadak opened 7 years ago

jpopadak commented 7 years ago

I am using a test database that other tests might not have cleaned up, in doing so, I want to use the CLEAR_INSERT and also the dbMaintainer.disableConstraints.enabled=true property to disable constraints upon insert.

In doing this, when DbMaintain attempts to execute the DeleteAllOperation, it does not check to see if the disableConstraints flag is set to true. Thus, resulting in a SQL error that is two foreign keys away from the one I am trying to clear.