BUGFIX Renamed PostgreSQLQuery::destroy() renamed to destruct() so that it is called properly after the object is destroyed
This commit is contained in:
parent
29f85e64cc
commit
f125bc22b1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue