Skip to content

Commit dd65370

Browse files
authored
Merge pull request #23 from pulasthibandara/patch-3
added compile random method to db2 grammar
2 parents 5a767e4 + 2d4fdf2 commit dd65370

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Query/Grammars/DB2Grammar.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,16 @@ public function getDateFormat()
181181
{
182182
return 'Y-m-d H:i:s.u';
183183
}
184+
185+
186+
/**
187+
* Compile the random statement into SQL.
188+
*
189+
* @param string $seed
190+
* @return string
191+
*/
192+
public function compileRandom($seed)
193+
{
194+
return "RAND($seed)";
195+
}
184196
}

0 commit comments

Comments
 (0)