Skip to content

Commit

Permalink
Merge pull request #23 from pulasthibandara/patch-3
Browse files Browse the repository at this point in the history
added compile random method to db2 grammar
  • Loading branch information
cooperl22 authored Apr 14, 2017
2 parents 5a767e4 + 2d4fdf2 commit dd65370
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Query/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,16 @@ public function getDateFormat()
{
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)";
}
}

0 comments on commit dd65370

Please sign in to comment.