From 931097810cde0e6c1fd9e7ab1e311c0f5d343642 Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Wed, 27 Mar 2024 21:55:47 -0300 Subject: [PATCH] fix close ORDS exec handle --- .../Databases/Connectors/Oracle/ORDS/Model/Query.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }