diff --git a/test/org/hibernate/test/ondelete/OnDeleteTest.java b/test/org/hibernate/test/ondelete/OnDeleteTest.java index 397b1fba7f..ff8b658ab3 100755 --- a/test/org/hibernate/test/ondelete/OnDeleteTest.java +++ b/test/org/hibernate/test/ondelete/OnDeleteTest.java @@ -78,7 +78,7 @@ public class OnDeleteTest extends FunctionalTestCase { t.commit(); assertEquals( statistics.getEntityDeleteCount(), 2 ); - if ( !(getDialect() instanceof MySQLDialect) || (getDialect() instanceof MySQLInnoDBDialect) ) { + if ( getDialect().supportsCascadeDelete() ) { assertEquals( statistics.getPrepareStatementCount(), 1 ); }