summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorytetsuro <phper.0o0@gmail.com>2020-01-29 12:15:59 +0100
committerGitHub <noreply@github.com>2020-01-29 12:15:59 +0100
commit432c22ba111a4b3c5c2f96edbb47c22b0e7dbf36 (patch)
tree4e688428d551b42339cdd0236d46b896f0be0c7e
parent2ad24af488da7dc518684cc146914b2937749031 (diff)
fix too many connection for oracle
-rw-r--r--system/database/drivers/oci8/oci8_driver.php8
1 files changed, 8 insertions, 0 deletions
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);
}