> Gray Jones a �crit :
> 
> couldn't create oql query: SELECT a from com.xtriahc.user.User a
> WHERE a.firstName like %$1
> An invalid character was found in the query at position 61

Just add the percent sign to your value (not your query) :
oqlQuery = db.getOQLQuery("SELECT a from com.xtriahc.user.User a WHERE
a.firstName like $1");
oqlQuery.bind("%test");


-- 
Mickael Guessant

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to