Author: sergiykarpenko
Date: 2010-02-12 04:56:01 -0500 (Fri, 12 Feb 2010)
New Revision: 1770
Modified:
core/trunk/exo.core.component.database/src/main/java/org/exoplatform/services/database/impl/HibernateServiceImpl.java
Log:
EXOJCR-485: auto detection fix
Modified:
core/trunk/exo.core.component.database/src/main/java/org/exoplatform/services/database/impl/HibernateServiceImpl.java
===================================================================
---
core/trunk/exo.core.component.database/src/main/java/org/exoplatform/services/database/impl/HibernateServiceImpl.java 2010-02-12
09:21:56 UTC (rev 1769)
+++
core/trunk/exo.core.component.database/src/main/java/org/exoplatform/services/database/impl/HibernateServiceImpl.java 2010-02-12
09:56:01 UTC (rev 1770)
@@ -116,7 +116,7 @@
String dialect = conf_.getProperty("hibernate.dialect");
- if (dialect != null && dialect.equalsIgnoreCase(AUTO_DIALECT))
+ if (dialect == null || dialect.equalsIgnoreCase(AUTO_DIALECT))
{
// detect dialect and replace parameter
Connection connection = null;