1
0
mirror of synced 2025-03-19 22:43:58 +03:00

added support for random()

This commit is contained in:
zYne 2007-02-07 14:22:45 +00:00
parent 5e4d1c3fdf
commit 2b06f512d2

View File

@ -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
*