function StatementBase::fetchField
Overrides StatementInterface::fetchField
1 call to StatementBase::fetchField()
- StatementPrefetchIterator::fetchColumn in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ StatementBase.php, line 278
Class
- StatementBase
- StatementInterface base implementation.
Namespace
Drupal\Core\Database\StatementCode
public function fetchField($index = 0) {
$column = $this->result
->fetch(FetchAs::Column, [
'column' => $index,
]);
if ($column === FALSE) {
$this->markResultsetFetchingComplete();
return FALSE;
}
$this->setResultsetCurrentRow($column);
return $column;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.