From 1ff65ff30e7b836a6bc4f9ede92a39297fe2bbab Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 26 Dec 2008 23:19:25 +0000 Subject: [PATCH] HHH-3508 - Sybase Dialect - Override supportsCascadeDelete to return "false" git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15730 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../test/java/org/hibernate/test/ondelete/OnDeleteTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/src/test/java/org/hibernate/test/ondelete/OnDeleteTest.java b/testsuite/src/test/java/org/hibernate/test/ondelete/OnDeleteTest.java index ffc3434ac6..2345d22b87 100755 --- a/testsuite/src/test/java/org/hibernate/test/ondelete/OnDeleteTest.java +++ b/testsuite/src/test/java/org/hibernate/test/ondelete/OnDeleteTest.java @@ -1,4 +1,4 @@ -//$Id: OnDeleteTest.java 10977 2006-12-12 23:28:04Z steve.ebersole@jboss.com $ +//$Id: OnDeleteTest.java 15728 2008-12-26 22:59:25Z gbadner $ package org.hibernate.test.ondelete; import java.util.List; @@ -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 ); }