Author: gbadner
Date: 2008-12-26 17:59:25 -0500 (Fri, 26 Dec 2008)
New Revision: 15728
Modified:
core/branches/Branch_3_2/test/org/hibernate/test/ondelete/OnDeleteTest.java
Log:
HHH-3508 - Sybase Dialect - Override supportsCascadeDelete to return "false"
Modified: core/branches/Branch_3_2/test/org/hibernate/test/ondelete/OnDeleteTest.java
===================================================================
--- core/branches/Branch_3_2/test/org/hibernate/test/ondelete/OnDeleteTest.java 2008-12-26
22:55:02 UTC (rev 15727)
+++ core/branches/Branch_3_2/test/org/hibernate/test/ondelete/OnDeleteTest.java 2008-12-26
22:59:25 UTC (rev 15728)
@@ -78,7 +78,7 @@
t.commit();
assertEquals( statistics.getEntityDeleteCount(), 2 );
- if ( !(getDialect() instanceof MySQLDialect) || (getDialect() instanceof
MySQLInnoDBDialect) ) {
+ if ( getDialect().supportsCascadeDelete() ) {
assertEquals( statistics.getPrepareStatementCount(), 1 );
}
Show replies by date