added support for random()
This commit is contained in:
parent
5e4d1c3fdf
commit
2b06f512d2
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user