mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
BUGFIX Renamed SQLite3Query::destroy() renamed to destruct() so that it is called properly after the object is destroyed
This commit is contained in:
parent
290250b1ec
commit
d1a024d7b1
@ -1208,8 +1208,8 @@ class SQLite3Query extends SS_Query {
|
|||||||
$this->handle = $handle;
|
$this->handle = $handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destroy() {
|
public function __destruct() {
|
||||||
$this->handle->finalize();
|
if($this->handle) $this->handle->finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function seek($row) {
|
public function seek($row) {
|
||||||
@ -1247,4 +1247,4 @@ class SQLite3Query extends SS_Query {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user