From a5e00f3201241c0180c6d4a6966a0b8ba41598c9 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Tue, 24 Sep 2013 22:04:40 -0400 Subject: [PATCH] HHH-8503 invoke determineDialect instead of constructDialect when hibernate.dialect is blank --- .../engine/jdbc/dialect/internal/DialectFactoryImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/DialectFactoryImpl.java b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/DialectFactoryImpl.java index b5ee361502..9bb8d92954 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/DialectFactoryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/jdbc/dialect/internal/DialectFactoryImpl.java @@ -29,6 +29,7 @@ import java.sql.SQLException; import java.util.Map; import org.hibernate.HibernateException; +import org.hibernate.annotations.common.util.StringHelper; import org.hibernate.boot.registry.selector.spi.StrategySelector; import org.hibernate.cfg.AvailableSettings; import org.hibernate.dialect.Dialect; @@ -59,7 +60,7 @@ public class DialectFactoryImpl implements DialectFactory { @Override public Dialect buildDialect(Map configValues, Connection connection) throws HibernateException { final String dialectName = (String) configValues.get( AvailableSettings.DIALECT ); - if ( dialectName != null ) { + if ( StringHelper.isEmpty( dialectName ) ) { return constructDialect( dialectName ); } else {