From 432c22ba111a4b3c5c2f96edbb47c22b0e7dbf36 Mon Sep 17 00:00:00 2001 From: ytetsuro Date: Wed, 29 Jan 2020 20:15:59 +0900 Subject: fix too many connection for oracle --- system/database/drivers/oci8/oci8_driver.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'system') diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php index a825c4a38..4dc665f33 100644 --- a/system/database/drivers/oci8/oci8_driver.php +++ b/system/database/drivers/oci8/oci8_driver.php @@ -682,6 +682,14 @@ 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); } -- cgit v1.2.3-24-g4f1b From 3de7ecb5ee57b4f0644f89da99d17cfdd67fae1d Mon Sep 17 00:00:00 2001 From: ytetsuro Date: Mon, 18 May 2020 13:59:40 +0900 Subject: style: add empty line. --- system/database/drivers/oci8/oci8_driver.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system') diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php index 4dc665f33..31bda5eb5 100644 --- a/system/database/drivers/oci8/oci8_driver.php +++ b/system/database/drivers/oci8/oci8_driver.php @@ -686,10 +686,12 @@ class CI_DB_oci8_driver extends CI_DB { { oci_free_statement($this->curs_id); } + if (is_resource($this->stmt_id)) { oci_free_statement($this->stmt_id); } + oci_close($this->conn_id); } -- cgit v1.2.3-24-g4f1b