details:   https://code.openbravo.com/erp/devel/pi/rev/395ce0ebf3e4
changeset: 13622:395ce0ebf3e4
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Tue Aug 30 13:56:35 2011 +0200
summary:   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

diffstat:

 src/org/openbravo/erpCommon/security/Login.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a94dffaa83dd -r 395ce0ebf3e4 
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);

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to