mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
SimpleQuery: Ignore limit and offset when counting
This commit is contained in:
parent
4044e56a03
commit
16a7b010bc
@ -426,13 +426,15 @@ class SimpleQuery implements QueryInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Count all rows of the result set
|
||||
* Count all rows of the result set, ignoring limit and offset
|
||||
*
|
||||
* @return int
|
||||
* @return int
|
||||
*/
|
||||
public function count()
|
||||
{
|
||||
return $this->ds->count($this);
|
||||
$query = clone $this;
|
||||
$query->limit(0, 0);
|
||||
return $this->ds->count($query);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user