diff --git a/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java b/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java index 6cdf1da123..e6f148bee7 100644 --- a/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java +++ b/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java @@ -26,6 +26,7 @@ import org.hibernate.classic.Session; 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 class ParentChildTest extends LegacyTestCase { 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();