Author: stliu
Date: 2010-03-30 09:15:29 -0400 (Tue, 30 Mar 2010)
New Revision: 19140
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java
Log:
HHH-5049 org.hibernate.test.legacy.ParentChildTest error running testLoadAfterNonExists
with Ingres
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java 2010-03-30
10:11:40 UTC (rev 19139)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java 2010-03-30
13:15:29 UTC (rev 19140)
@@ -26,6 +26,7 @@
import org.hibernate.criterion.Restrictions;
import org.hibernate.dialect.DB2Dialect;
import org.hibernate.dialect.HSQLDialect;
+import org.hibernate.dialect.IngresDialect;
import org.hibernate.dialect.MySQLDialect;
import org.hibernate.engine.EntityEntry;
import org.hibernate.impl.SessionImpl;
@@ -1034,8 +1035,8 @@
public void testLoadAfterNonExists() throws HibernateException, SQLException {
Session session = openSession();
- if ( (getDialect() instanceof MySQLDialect) ) {
- session.connection().setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
+ if ( ( getDialect() instanceof MySQLDialect ) || ( getDialect() instanceof
IngresDialect ) ) {
+ session.connection().setTransactionIsolation( Connection.TRANSACTION_READ_COMMITTED
);
}
session.getTransaction().begin();