Commit 2b06f512 authored by zYne's avatar zYne

added support for random()

parent 5e4d1c3f
......@@ -41,6 +41,15 @@ class Doctrine_Expression_Mysql extends Doctrine_Expression
{
return 'RLIKE';
}
/**
* return string to call a function to get random value inside an SQL statement
*
* @return string to generate float between 0 and 1
*/
public function random()
{
return 'RAND()';
}
/**
* build a pattern matching string
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment