HHH-5049 org.hibernate.test.legacy.ParentChildTest error running testLoadAfterNonExists with Ingres

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19140 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-03-30 13:15:29 +00:00
parent 2451e5f31d
commit 54d496295e
1 changed files with 3 additions and 2 deletions

View File

@ -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();