Skip to content

Commit

Permalink
Add test for #11284
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 14, 2017
1 parent d3a4ce1 commit e85f489
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -397,6 +397,13 @@ public function testDistinctWithLimit() {
));
$result = $this->db->getLastQuery();
$this->assertRegExp('/^SELECT DISTINCT TOP 5/', $result);

$this->db->read($this->model, array(
'fields' => array('DISTINCT SqlserverTestModel.city', 'SqlserverTestModel.country'),
'limit' => '5'
));
$result = $this->db->getLastQuery();
$this->assertRegExp('/^SELECT DISTINCT TOP 5/', $result);
}

/**
Expand Down

0 comments on commit e85f489

Please sign in to comment.