HHH-8503 invoke determineDialect instead of constructDialect when

hibernate.dialect is blank
This commit is contained in:
Brett Meyer 2013-09-24 22:04:40 -04:00
parent 3740a5b37b
commit a5e00f3201
1 changed files with 2 additions and 1 deletions

View File

@ -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 {