Try passing it like this : 'BINARY (`Table`.`field`)' - works for me

This is a bit of a hack though, you might want to raise a ticket for
this at trac. I'm not 100% sure if ORDER BY BINARY is standard sql or
mysql-specific.

--- techy details ---
This workaround works because the parentheses are interpreted by
CakePHP to mean "probably a function, let's not mess with it" but to
mysql it means an expression, as if you wanted to do something like
'ORDER BY (2*field+other_field)'  or something, but because it's not
really an expression (from the mysql optimizer's point of view), it's
optimized away to be a simple field reference.

On Dec 14, 4:25 pm, Jan Koprowski <[EMAIL PROTECTED]> wrote:
> When I add 3. parametr of findAll: BINARY `Table`.`field` - i get
> "`BINARY ..." what generate error in MySQL Syntax - how get the binary
> ORDER BY in cakephp ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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