[hibernate-commits] Hibernate SVN: r21070 - core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/formulajoin.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Wed Sep 12 15:01:07 EDT 2012
Author: brmeyer
Date: 2012-09-12 15:01:06 -0400 (Wed, 12 Sep 2012)
New Revision: 21070
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/formulajoin/FormulaJoinTest.java
Log:
JBPAPP-9485 EAP5 Hibernate tests fail on DB2 with GenericJDBCException
Modified: core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/formulajoin/FormulaJoinTest.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/formulajoin/FormulaJoinTest.java 2012-09-12 17:05:47 UTC (rev 21069)
+++ core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/formulajoin/FormulaJoinTest.java 2012-09-12 19:01:06 UTC (rev 21070)
@@ -7,6 +7,7 @@
import org.hibernate.Session;
import org.hibernate.Transaction;
+import org.hibernate.dialect.DB2Dialect;
import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.junit.functional.FunctionalTestCase;
import org.hibernate.junit.functional.FunctionalTestClassTestSuite;
@@ -29,6 +30,10 @@
}
public void testFormulaJoin() {
+ //JBPAPP-9485 -- DB2 cannot handle the boolean query. Hibernate 3 relies
+ // on developers to know the correct db-specific implementation of bool.
+ if ( getDialect() instanceof DB2Dialect ) return;
+
Session s = openSession();
Transaction tx = s.beginTransaction();
Master master = new Master();
More information about the hibernate-commits
mailing list