You are here

function DB_pgsql::freeResult in Flickr API 5

Deletes the result set and frees the memory occupied by the result set

This method is not meant to be called directly. Use DB_result::free() instead. It can't be declared "protected" because DB_result is a separate object.

Parameters

resource $result PHP's query result resource:

Return value

bool TRUE on success, FALSE if $result is invalid

See also

DB_result::free()

File

phpFlickr/PEAR/DB/pgsql.php, line 449

Class

DB_pgsql
The methods PEAR DB uses to interact with PHP's pgsql extension for interacting with PostgreSQL databases

Code

function freeResult($result) {
  if (is_resource($result)) {
    unset($this->row[(int) $result]);
    unset($this->_num_rows[(int) $result]);
    $this->affected = 0;
    return @pg_freeresult($result);
  }
  return false;
}