diff --git a/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php b/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php index d60b9e3..669853d 100644 --- a/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php +++ b/system/database/Databases/Connectors/Oracle/ORDS/Model/Query.php @@ -151,9 +151,11 @@ class Query implements QueryApi { * {@inheritdoc} */ public function close() { - $this->handle->close(); + if($this->handle){ + $this->handle->close(); - unset($this->handle); + unset($this->handle); + } //$this->handle = \Phacil\Framework\Registry::getInstance()->create(HandleInterface::class); }