mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 22:39:13 +00:00
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:
parent
2451e5f31d
commit
54d496295e
@ -26,6 +26,7 @@
|
|||||||
import org.hibernate.criterion.Restrictions;
|
import org.hibernate.criterion.Restrictions;
|
||||||
import org.hibernate.dialect.DB2Dialect;
|
import org.hibernate.dialect.DB2Dialect;
|
||||||
import org.hibernate.dialect.HSQLDialect;
|
import org.hibernate.dialect.HSQLDialect;
|
||||||
|
import org.hibernate.dialect.IngresDialect;
|
||||||
import org.hibernate.dialect.MySQLDialect;
|
import org.hibernate.dialect.MySQLDialect;
|
||||||
import org.hibernate.engine.EntityEntry;
|
import org.hibernate.engine.EntityEntry;
|
||||||
import org.hibernate.impl.SessionImpl;
|
import org.hibernate.impl.SessionImpl;
|
||||||
@ -1034,8 +1035,8 @@ public void testObjectType() throws Exception {
|
|||||||
|
|
||||||
public void testLoadAfterNonExists() throws HibernateException, SQLException {
|
public void testLoadAfterNonExists() throws HibernateException, SQLException {
|
||||||
Session session = openSession();
|
Session session = openSession();
|
||||||
if ( (getDialect() instanceof MySQLDialect) ) {
|
if ( ( getDialect() instanceof MySQLDialect ) || ( getDialect() instanceof IngresDialect ) ) {
|
||||||
session.connection().setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
|
session.connection().setTransactionIsolation( Connection.TRANSACTION_READ_COMMITTED );
|
||||||
}
|
}
|
||||||
session.getTransaction().begin();
|
session.getTransaction().begin();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user