From a5aa738c957d426163ffccb630fbe8ec9fd9e116 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 26 Dec 2008 22:59:25 +0000 Subject: [PATCH] HHH-3508 - Sybase Dialect - Override supportsCascadeDelete to return "false" git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_2@15728 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- test/org/hibernate/test/ondelete/OnDeleteTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }