Skip to content

Commit

Permalink
Merge pull request #10 from alikon/patch-43
Browse files Browse the repository at this point in the history
added function comment
  • Loading branch information
brianteeman committed Jul 18, 2015
2 parents 396cb3a + a907db7 commit 2828e04
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libraries/joomla/database/query/sqlsrv.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,17 @@ public function setLimit($limit = 0, $offset = 0)

return $this;
}

/**
* Return correct rand() function for MSSQL.
*
* Ensure that the rand() function is MSSQL compatible.
*
* Usage:
* $query->Rand();
*
* @return string the correct rand function.
*/
public function Rand()
{
return ' NEWID() ';
Expand Down

0 comments on commit 2828e04

Please sign in to comment.