Skip to content

Commit

Permalink
Fix orderBy() test
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Oct 15, 2020
1 parent 92dfd03 commit e78a11b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/system/Database/Live/OrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function testOrderRandom()
{
$key = 'RAND()';
}
elseif ($this->db->DBDriver === 'Sqlsrv')
{
$key = 'NEWID()';
}

$expected = 'SELECT * FROM ' . $this->db->protectIdentifiers('job', true) . ' ORDER BY ' . $key;

Expand Down

0 comments on commit e78a11b

Please sign in to comment.