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 9bb8d92954..55c766facf 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 @@ -60,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 ( StringHelper.isEmpty( dialectName ) ) { + if ( !StringHelper.isEmpty( dialectName ) ) { return constructDialect( dialectName ); } else {