You are here

function DB_result::free in Flickr API 5

Frees the resources allocated for this result set

Return value

bool true on success. A DB_Error object on failure.

2 calls to DB_result::free()
DB_result::fetchInto in phpFlickr/PEAR/DB.php
Fetch a row of data into an array which is passed by reference
DB_result::fetchRow in phpFlickr/PEAR/DB.php
Fetch a row of data and return it by reference into an array

File

phpFlickr/PEAR/DB.php, line 1282

Class

DB_result
This class implements a wrapper for a DB result set

Code

function free() {
  $err = $this->dbh
    ->freeResult($this->result);
  if (DB::isError($err)) {
    return $err;
  }
  $this->result = false;
  $this->statement = false;
  return true;
}