1 select.inc public SelectQueryExtender::countQuery()

Get the equivalent COUNT query of this query as a new query object.

Return value

SelectQueryInterface: A new SelectQuery object with no fields or expressions besides COUNT(*).

Overrides SelectQueryInterface::countQuery

File

core/includes/database/select.inc, line 801

Class

SelectQueryExtender
The base extender class for Select queries.

Code

public function countQuery() {
  return $this->query->countQuery();
}