From 9c3bad3b2dd443b71d8b323918c4396e46d37126 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Wed, 10 Apr 2013 15:12:32 -0400 Subject: [PATCH] HHH-8084 LobMergeTest fails on oracle --- .../src/main/java/org/hibernate/internal/SessionImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java index b994ed92c7..59e9dba423 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java @@ -85,6 +85,7 @@ import org.hibernate.collection.spi.PersistentCollection; import org.hibernate.criterion.NaturalIdentifier; import org.hibernate.engine.internal.StatefulPersistenceContext; 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.HQLQueryPlan; import org.hibernate.engine.query.spi.NativeSQLQueryPlan; @@ -2244,7 +2245,9 @@ public final class SessionImpl extends AbstractSessionImpl implements EventSourc } 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