roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eli...@apache.org
Subject svn commit: r451080 - /incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateWeblogManagerImpl.java
Date Fri, 29 Sep 2006 01:24:22 GMT
Author: eliast
Date: Thu Sep 28 18:24:22 2006
New Revision: 451080

URL: http://svn.apache.org/viewvc?view=rev&rev=451080
Log:
- Removed use of lower() HQL function for better compatability with dbs.
- Fixed location of '%' in parameter.

Modified:
    incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateWeblogManagerImpl.java

Modified: incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateWeblogManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateWeblogManagerImpl.java?view=diff&rev=451080&r1=451079&r2=451080
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateWeblogManagerImpl.java
(original)
+++ incubator/roller/trunk/src/org/apache/roller/business/hibernate/HibernateWeblogManagerImpl.java
Thu Sep 28 18:24:22 2006
@@ -466,8 +466,8 @@
             }
             
             if (locale != null) {
-                queryString.append("lower(locale) like ? ");
-                params.add("%" + locale.toLowerCase());
+                queryString.append("locale like ? ");
+                params.add(locale + '%');
             }
             
             if (sortby != null && sortby.equals("updateTime")) {



Mime
View raw message