-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: need help on search hql query with lower() function
PostPosted: Wed Aug 08, 2007 10:44 am 
Newbie

Joined: Tue Mar 27, 2007 6:14 am
Posts: 4
pl help for the foollowing query it throws exception

_____________________
query
_______

String HQL="from HelpdeskArticles n where lower(n.title) like :searchText or lower(n.description) like :searchText and

newsList=session.createQuery(HQL).setParameter("searchText","%"+searchFilter.getSearchText().toLowerCase()+"%").

_____________________________
exception
________

org.hibernate.exception.SQLGrammarException: could not execute query

com.ibm.db2.jcc.b.SqlException: No authorized routine named "UPPER" of type "FUNCTION" having compatible arguments was found.

The DB column data type for description is CLOB , can't we apply lower() function for CLOB type column


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.