mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add test for #11284
This commit is contained in:
parent
d3a4ce1216
commit
e85f489c1f
1 changed files with 7 additions and 0 deletions
|
@ -397,6 +397,13 @@ class SqlserverTest extends CakeTestCase {
|
||||||
));
|
));
|
||||||
$result = $this->db->getLastQuery();
|
$result = $this->db->getLastQuery();
|
||||||
$this->assertRegExp('/^SELECT DISTINCT TOP 5/', $result);
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue