BUGFIX Renamed PostgreSQLQuery::destroy() renamed to destruct() so that it is called properly after the object is destroyed

This commit is contained in:
Sean Harvey 2010-10-14 05:29:28 +00:00
parent 29f85e64cc
commit f125bc22b1
1 changed files with 2 additions and 2 deletions

View File

@ -1740,8 +1740,8 @@ class PostgreSQLQuery extends SS_Query {
$this->handle = $handle;
}
public function __destroy() {
pg_free_result($this->handle);
public function __destruct() {
if(is_resource($this->handle)) pg_free_result($this->handle);
}
public function seek($row) {