added compile random method to db2 grammar
This commit is contained in:
parent
e26b9b4bcb
commit
2d4fdf23ca
@ -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)";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user