Skip to content

Commit

Permalink
Remove Statement::fetchColumnAndClose() #14
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Nov 6, 2016
1 parent f98cdf5 commit 1da6e60
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions lib/ActiveRecord/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,27 +162,11 @@ protected function get_one()
}

/**
* Fetches a column of the first row of the result set and closes the cursor.
*
* @param int $column_number
* Fetches the first column of the first row of the result set and closes the cursor.
*
* @return string
*
* @see PDOStatement::fetchColumn()
*
* @deprecated
*/
public function fetchColumnAndClose($column_number = 0)
{
$rc = $this->fetchColumn($column_number);

$this->closeCursor();

return $rc;
}

/**
* Alias for `fetchColumnAndClose()`.
*/
protected function get_rc()
{
Expand Down

0 comments on commit 1da6e60

Please sign in to comment.