From bb8f915859900c8ee11228cfc199dc9cb66f7b3e Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 10 May 2010 21:48:24 +0000 Subject: [PATCH] HHH-5200 - Prepare to use H2 as the default testing datbase git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19456 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/dialect/H2Dialect.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/main/java/org/hibernate/dialect/H2Dialect.java b/core/src/main/java/org/hibernate/dialect/H2Dialect.java index 48cda5eb2a..713ec528f6 100644 --- a/core/src/main/java/org/hibernate/dialect/H2Dialect.java +++ b/core/src/main/java/org/hibernate/dialect/H2Dialect.java @@ -314,4 +314,10 @@ public class H2Dialect extends Dialect { public boolean supportsTupleDistinctCounts() { return false; } + + @Override + public boolean doesReadCommittedCauseWritersToBlockReaders() { + // see http://groups.google.com/group/h2-database/browse_thread/thread/562d8a49e2dabe99?hl=en + return true; + } }