function PdoTrait::clientRowCount
Returns the number of rows affected by the last SQL statement.
Return value
int The number of rows.
2 calls to PdoTrait::clientRowCount()
- StatementPrefetchIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php - Executes a prepared statement.
- StatementWrapperIterator::rowCount in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php - Returns the number of rows matched by the last SQL statement.
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ PdoTrait.php, line 215
Class
- PdoTrait
- A trait for calling \PDOStatement methods.
Namespace
Drupal\Core\Database\StatementCode
protected function clientRowCount() : int {
return $this->getClientStatement()
->rowCount();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.