Merge pull request #23 from pulasthibandara/patch-3

added compile random method to db2 grammar
This commit is contained in:
Cooperl Arc Atlantique 2017-04-14 16:09:12 +02:00 committed by GitHub
commit dd653705da

View File

@ -181,4 +181,16 @@ class DB2Grammar extends Grammar
{
return 'Y-m-d H:i:s.u';
}
/**
* Compile the random statement into SQL.
*
* @param string $seed
* @return string
*/
public function compileRandom($seed)
{
return "RAND($seed)";
}
}