diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 18:09:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 18:09:23 +0100 |
commit | 546e102c3523375150c8e9f1ce4f07a6ea271eb0 (patch) | |
tree | abc4d16c8bb56ef4b3c27a72c00627a4175d9824 | |
parent | 83bb3859ecce8e21ba8322382f60b10fab34fc28 (diff) | |
parent | 3de7ecb5ee57b4f0644f89da99d17cfdd67fae1d (diff) |
[ci skip] Merge pull request #5896 from ytetsuro/patch-3
fix too many connection for oracle
-rw-r--r-- | system/database/drivers/oci8/oci8_driver.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php index a9d75ebf2..511ef0e64 100644 --- a/system/database/drivers/oci8/oci8_driver.php +++ b/system/database/drivers/oci8/oci8_driver.php @@ -682,6 +682,16 @@ class CI_DB_oci8_driver extends CI_DB { */ protected function _close() { + if (is_resource($this->curs_id)) + { + oci_free_statement($this->curs_id); + } + + if (is_resource($this->stmt_id)) + { + oci_free_statement($this->stmt_id); + } + oci_close($this->conn_id); } |