Merge pull request #78 from lekoala/patch-4

Finalize only if db is available
This commit is contained in:
Guy Sartorelli 2024-07-12 08:31:15 +12:00 committed by GitHub
commit 1c81f6fe22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ class SQLite3Query extends Query
public function __destruct() public function __destruct()
{ {
if ($this->handle) { if ($this->handle && $this->database->isActive()) {
$this->handle->finalize(); $this->handle->finalize();
} }
} }