added compile random method to db2 grammar

This commit is contained in:
paul 2016-11-10 14:14:45 +13:00
parent e26b9b4bcb
commit 2d4fdf23ca
1 changed files with 12 additions and 0 deletions

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)";
}
}