Hello "Dardo Sordi, 

Thanks for your help, but using -! didn't help much. Cakephp wrongly
inserted a = before the LIKE. 

= LIKE CONVERT( _utf8 '%74%' USING ASCII)

Regards 

Igor

 

Dardo Sordi Bogado wrote:
> 
> 
>> It's wrong and I don't get any data. Is it a bug in cakephp or I a am
>> doing something wrong?
> 
> Cake is escaping your data, prepend "-!" to the condition.
> 
> $cond=array("Elilib.nazev"=> "-! LIKE CONVERT( _utf8
> "."'".$this->data['Elilib']['nazev']."' USING ASCII)");
> 
> HTH,
> - Dardo Sordi.
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/LIKE-operator-with-a-function-tp17631202p17649673.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to