HHH-8084 LobMergeTest fails on oracle

This commit is contained in:
Brett Meyer 2013-04-10 15:12:32 -04:00
parent 6386ba4d88
commit 9c3bad3b2d
1 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,7 @@ import org.hibernate.collection.spi.PersistentCollection;
import org.hibernate.criterion.NaturalIdentifier; import org.hibernate.criterion.NaturalIdentifier;
import org.hibernate.engine.internal.StatefulPersistenceContext; import org.hibernate.engine.internal.StatefulPersistenceContext;
import org.hibernate.engine.jdbc.LobCreator; import org.hibernate.engine.jdbc.LobCreator;
import org.hibernate.engine.jdbc.NonContextualLobCreator;
import org.hibernate.engine.query.spi.FilterQueryPlan; import org.hibernate.engine.query.spi.FilterQueryPlan;
import org.hibernate.engine.query.spi.HQLQueryPlan; import org.hibernate.engine.query.spi.HQLQueryPlan;
import org.hibernate.engine.query.spi.NativeSQLQueryPlan; import org.hibernate.engine.query.spi.NativeSQLQueryPlan;
@ -2244,7 +2245,9 @@ public final class SessionImpl extends AbstractSessionImpl implements EventSourc
} }
private LobCreator lobCreator() { private LobCreator lobCreator() {
return session.getFactory().getJdbcServices().getLobCreator( session ); // Always use NonContextualLobCreator. If ContextualLobCreator is
// used both here and in WrapperOptions,
return NonContextualLobCreator.INSTANCE;
} }
@Override @Override