Add test for #11284

This commit is contained in:
mark_story 2017-10-13 21:55:56 -04:00
parent d3a4ce1216
commit e85f489c1f

View file

@ -397,6 +397,13 @@ class SqlserverTest extends CakeTestCase {
));
$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);
}
/**