/** * {@inheritdoc} */ public function fetchColumn($columnIndex = 0) { $value = $this->stmt->fetchColumn($columnIndex); if ($this->portability & (Connection::PORTABILITY_EMPTY_TO_NULL | Connection::PORTABILITY_RTRIM)) { if ($this->portability & Connection::PORTABILITY_EMPTY_TO_NULL && $value === '') { $value = null; } elseif ($this->portability & Connection::PORTABILITY_RTRIM && is_string($value)) { $value = rtrim($value); } } return $value; }
/** * Provide a simple fetchOne. * * fetch single column from the next row * @param int $column the column number to fetch * @return string */ public function fetchOne($column = 0) { return $this->statement->fetchColumn($column); }
public function fetchColumn($columnIndex = 0) { return $this->wrapped->fetchColumn($columnIndex); }
/** * Returns a single column from the next row of a result set. * * @param integer $columnIndex * * @return mixed A single column from the next row of a result set or FALSE if there are no more rows. */ public function fetchColumn($columnIndex = 0) { return $this->stmt->fetchColumn($columnIndex); }