Fixes build int-gui-oracle - Build # 255. Related to issue 18297
authorIván Perdomo <ivan.perdomo@openbravo.com>
Tue, 30 Aug 2011 13:56:35 +0200
changeset 13622 395ce0ebf3e4
parent 13621 a94dffaa83dd
child 13623 dfde2574ecaf
child 13624 339363457926
Fixes build int-gui-oracle - Build # 255. Related to issue 18297
- The hql fails in Oracle if you use a property clob = value, it works
if you use like
src/org/openbravo/erpCommon/security/Login.java
--- a/src/org/openbravo/erpCommon/security/Login.java	Tue Aug 30 12:29:57 2011 +0200
+++ b/src/org/openbravo/erpCommon/security/Login.java	Tue Aug 30 13:56:35 2011 +0200
@@ -247,7 +247,7 @@
     Module module = OBDal.getInstance().get(Module.class, GOOGLE_INTEGRATION_MODULE_ID);
 
     if (ActivationKey.getInstance().isActive()) {
-      String hql = "from ADPreference pref where searchKey = :value and property = :prop and (visibleAtClient is null or visibleAtClient.id = '0')";
+      String hql = "from ADPreference pref where searchKey like :value and property = :prop and (visibleAtClient is null or visibleAtClient.id = '0')";
       Query q = OBDal.getInstance().getSession().createQuery(hql);
       q.setParameter("value", "N");
       q.setParameter("prop", GOOGLE_PREFERENCE_PROPERTY);