If i use something like the find below, it will issue wrong results because
CURRENT_TIMESTAMP it will be wrapped in single quotes as a string. I know
that CURRENT_TIMESTAMP is not available on all db sources, but as i'm
interested only in mysql and oracle (that do support), can't i do something
so that cake won't interpret it as a string?

$continent =     $this->mymodel->findAll(
                            array (    '`mymodel`.`start_time`' => '>=
CURRENT_TIMESTAMP',
                                         '`mymodel`.`end_time`' => '<
CURRENT_TIMESTAMP' ),
                            null, null, null, 0, 1
                        );

--~--~---------~--~----~------------~-------~--~----~
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