Author: sdumitriu
Date: 2008-01-10 12:40:20 +0100 (Thu, 10 Jan 2008)
New Revision: 6720

Modified:
   xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
Log:
XWIKI-2001: XWiki.isMySQL always returns false due to a deprecated check


Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
===================================================================
--- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 
2008-01-10 11:34:05 UTC (rev 6719)
+++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 
2008-01-10 11:40:20 UTC (rev 6720)
@@ -4535,8 +4535,13 @@
 
     public boolean isMySQL()
     {
-        return 
"net.sf.hibernate.dialect.MySQLDialect".equals(getHibernateStore()
-            .getConfiguration().getProperties().get("dialect"));
+        if (getHibernateStore() == null) {
+            return false;
+        }
+        return 
"org.hibernate.dialect.MySQLDialect".equals(getHibernateStore().getConfiguration()
+            .getProperties().get("dialect"))
+            || 
"net.sf.hibernate.dialect.MySQLDialect".equals(getHibernateStore()
+                .getConfiguration().getProperties().get("dialect"));
     }
 
     public String getFullNameSQL()

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to