Skip to content

Commit 2d4fdf2

Browse files
author
paul
committed
added compile random method to db2 grammar
1 parent e26b9b4 commit 2d4fdf2

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)