Merge pull request #23 from pulasthibandara/patch-3
added compile random method to db2 grammar
This commit is contained in:
commit
dd653705da
@ -181,4 +181,16 @@ class DB2Grammar extends Grammar
|
|||||||
{
|
{
|
||||||
return 'Y-m-d H:i:s.u';
|
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