mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
DbQuery: Drop attribute $maxCount
It's not used anywhere and completely useless the way it's implemented.
This commit is contained in:
parent
3d846ea270
commit
a0d5509f19
@ -47,16 +47,6 @@ class DbQuery extends SimpleQuery
|
|||||||
*/
|
*/
|
||||||
protected $useSubqueryCount = false;
|
protected $useSubqueryCount = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the count maximum
|
|
||||||
*
|
|
||||||
* If the count maximum is set, count queries will not count more than that many rows. You should set this
|
|
||||||
* property only for really heavy queries.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
protected $maxCount;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count query result
|
* Count query result
|
||||||
*
|
*
|
||||||
@ -339,9 +329,6 @@ class DbQuery extends SimpleQuery
|
|||||||
$columns = array('cnt' => 'COUNT(*)');
|
$columns = array('cnt' => 'COUNT(*)');
|
||||||
return $this->db->select()->from($count, $columns);
|
return $this->db->select()->from($count, $columns);
|
||||||
}
|
}
|
||||||
if ($this->maxCount !== null) {
|
|
||||||
return $this->db->select()->from($count->limit($this->maxCount));
|
|
||||||
}
|
|
||||||
|
|
||||||
$count->columns(array('cnt' => 'COUNT(*)'));
|
$count->columns(array('cnt' => 'COUNT(*)'));
|
||||||
return $count;
|
return $count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user